RH 7.2
I'm trying to list the users & groups on my machine. I found the lsuser & lsgroup commands but no associated man pages.
I typed: lsuser
I get --> Valid options are: -a
So I typed: lsuser -a
I get --> Valid options are: groups, home
So I typed: lsuser -a groups
I get -->... (2 Replies)
hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group.
But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied
Can my admin... (1 Reply)
How do I remove a user from a group? I'm using the usermod command but its not working.
I have a user "abc" who is a member of the groups root and other. I'm trying to remove him from the group "other" (using CLI) which is his secondary group but it's not working.
How do I do this? Is there any... (11 Replies)
Hi
I am new to unix so hopefully someone can help. I need to list all the users I have in my unix enviroment (AIX) and the groups (primary and secondary) they belong to.
Can anyone help?
Many thanks in advance (2 Replies)
Hi,
I have two little issues:
1) there is possible in sh to create a function who return a boolean value?
2)i have to verify if an user belongs to a group and i think it is needed to create a function which take two parameter and return a boolean value. in fact i have to parse /etc/group... (5 Replies)
Happy Thanksgiving Everyone!! I have a question about adding users to multiple groups. Thanks in advance
Using Red Hat and here are the issues:
Example:
Users:
Bob
Mark
Groups:
SystemsAnalysts
BusinessAnalysts
If I am adding a user Bob to both groups (SystemsAnalysts and... (2 Replies)
Hi,
I need to modify the user 'munfai' by adding it into groups bscs, oinstall, dba.
I use this command as user root to add the user into the mentioned groups :
# usermod -G bscs,oinstall,dba munfai
I can thereafter see the id in the groups :
# id munfai
uid=258(munfai) gid=20(users)... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT REDHAT
newusers
NEWUSERS(8) System Manager's Manual NEWUSERS(8)NAME
newusers - update and create new users in batch
SYNOPSIS
newusers [new_users]
DESCRIPTION
newusers reads a file of user name and cleartext password pairs and uses this information to update a group of existing users or to create
new users. Each line is in the same format as the standard password file (see passwd(5)) with the following exceptions.
pw_passwd This field will be encrypted and used as the new value of the encrypted password.
pw_age This field will be ignored for shadow passwords if the user already exists.
pw_gid This field may be the name of an existing group, in which case the named user will be added as a member. If a non-existent
numerical group is given, a new group will be created having this number.
pw_dir This field will be checked for existence as a directory and a new directory with the same name will be created if it does not
already exist. The ownership of the directory will be set to be that of the user being created or updated.
This command is intended to be used in a large system environment where many accounts are updated at a single time.
CAVEATS
The input file must be protected since it contains unencrypted passwords.
SEE ALSO passwd(1), useradd(8)AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
NEWUSERS(8)