oracle user's primary group is oinstall and its secondary group is dba,asmdba,asmoper.
For the below created directory, I want the users belonging to dba,asmdba,asmoper to be able create, read and execute files but not delete them. How can I achieve that.
If I use 775 as shown below , then the above mentioned users will be able to DELETE files. I don't want that
I'm using SAM to add users on an HP and they're adding fine. But in /etc/group it only lists the group names. It's not adding the users in there. Is there a way to have them put in there without going into SAM and modifying the group and adding them? I guess what I want to happen is when I add... (1 Reply)
Hi All,
Does anyone know if there is a maximum limit to the number of users that can be assigned to a group. I currently have on a production server 900+ users in 1 group. I know some of these users are no longer valid as we only have 500 employees and not all employees use this application.
... (4 Replies)
Hi,
Can any one tell me is it possible to setup private key public key pairing(SSH ) for a group of users , instead of setting it up for individual users ?
Eg:
Say i have 3 users A,B and C and i want the users to connect to SERVER1. instead of generating public private keys for each user , is... (3 Replies)
Im trying to put all the groups in into a variable called $GROUP, however in /etc/group there are also lotsa users. And the GID of group can differ as it can be set, this there is no specific range, how can i put all the names of the groups into that variable? (3 Replies)
Hello
They have ordered to me that makes several small utilities in C/C++ for the servants, among them a small program in C/C++ to generate a file HTML with the groups of that servant and in addition that is the corresponding users of that group.
For example of a group:
Group: Sys Members:... (2 Replies)
hi guys
I am trying to display a list of groups and the respective users:
Group1 : user1 user2 user3 ....
the closest thing I get is
echo " "; echo "Group Users "; echo " "; cat /etc/group |grep | grep -v nfswhich I really don't since I want to remove the other stuff like x : and... (4 Replies)
Hi,
please let me know the commands to create new group/delete existing group in unix and assigning users to newly created group.
Thank you in advance. (2 Replies)
Discussion started by: kancherla.sree
2 Replies
LEARN ABOUT NETBSD
newgrp
NEWGRP(1) BSD General Commands Manual NEWGRP(1)NAME
newgrp -- change to a new primary group
SYNOPSIS
newgrp [-l] [group]
DESCRIPTION
The newgrp command changes a user to a new primary group (real and effective group ID) by starting a new shell. The user remains logged in
and the current directory and file creation mask remain unchanged. The user is always given a new shell even if the primary group change
fails.
The newgrp command accepts the following options:
-l The environment is changed to what would be expected if the user actually logged in again. This simulates a full login.
The group is a group name or non-negative numeric group ID from the group database. The real and effective group IDs are set to group or the
group ID associated with the group name.
If group is not specified, newgrp restores the user's real and effective group IDs to the user's primary group specified in the password
database. The user's supplementary group IDs are restored to the set specified for the user in the group database.
If the user is not a member of the specified group, and the group requires a password, the user will be prompted for the group password.
FILES
/etc/group The group database
/etc/master.passwd The user database
/etc/passwd A Version 7 format password file
EXIT STATUS
If a new shell is started the exit status is the exit status of the shell. Otherwise the exit status will be >0.
SEE ALSO csh(1), groups(1), login(1), sh(1), su(1), umask(2), group(5), passwd(5), environ(7)STANDARDS
The newgrp command conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A newgrp command appeared in Version 6 AT&T UNIX. A newgrp command appeared in NetBSD 5.0.
BUGS
There is no convenient way to enter a password into /etc/group. The use of group passwords is strongly discouraged since they are inherently
insecure. It is not possible to stop users from obtaining the encrypted password from the group database.
BSD June 6, 2007 BSD