Sponsored Content
Operating Systems Linux Red Hat User is a Part of a Group But Group Details Do Not Show the User Post 302841769 by Just Ice on Thursday 8th of August 2013 02:08:33 AM
Old 08-08-2013
richard (uid 10247) does not need to be explicitly listed in the developers group (gid 100361) because that is his/her primary group membership ... you can add richard into the developers group list but that is unnecessary though it would make it easier to see who the group members are ...

as for being able to login into the server -- assuming the user's account is properly setup -- the only other thing missing would be the user's home directory on the server ... since this user's account seems to be new, it would not be surprising to know that he/she is not able to access his/her home directory on the rhel box (i.e., home directory not created, wrong permissions, wrong ownership, etc.) ...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

User Group

I can't get a clear answer on this one... I have a Oracle user created in group 'dba' when this user touches a file the group displayed is 'sys' - why? The 'sys' group is not included in the list of secondary groups for this user. Is this standard to Oracle on Unix? (AIX) Anybody? (1 Reply)
Discussion started by: errolg
1 Replies

2. UNIX for Dummies Questions & Answers

user/group

Hi! Herez the scenario 1. logged in as user xxxx $ id uid=125(xxxx) gid=101(my_grp) groups=0(system),15(users),16(sysadmin),19(adm),110(appl) $ touch test $ ls -la test -rw-r--r-- 1 xxxx system 0 Mar 7 14:31 test Why is the group of the file test 'system' and not... (2 Replies)
Discussion started by: sdharmap
2 Replies

3. UNIX for Dummies Questions & Answers

how can i add a user to a group

All, How i can add a user to a group so that the user will ahve all permsion on that directory . (sys12:pnl:/work/cn/>) groups crcv1 canusr and (sys12:pnl:/work/cn/>) groups pfmgr pfw users i am having the .ssh in the directory /work/cn/ which has permision as drwx------ . ... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

4. Shell Programming and Scripting

awk help required to group output and print a part of group line and original line

Hi, Need awk help to group and print lines to format the output as shown below INPUT FORMAT set echo on set heading on set spool on /* SCHEMA1 */ CREATE TABLE T1; /* SCHEMA1 */ CREATE TABLE T2; /* SCHEMA1 */ CREATE TABLE T3; /* SCHEMA1 */ CREATE TABLE T4; /* SCHEMA1 */ CREATE TABLE T5;... (5 Replies)
Discussion started by: rajan_san
5 Replies

5. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

6. Shell Programming and Scripting

user and its group

Hello, is there any command which can show a particular user "xyz" is belongs to how many groups thanks (3 Replies)
Discussion started by: lookinginfo
3 Replies

7. Ubuntu

primary group for user

HI I need to know what is the primary group name of a particular user. How to do this ? Maybe with groups cmd ? (first group name in line, is the primary group) thx for help. (2 Replies)
Discussion started by: presul
2 Replies

8. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

9. Debian

Group/User

Can someone help in creating a group and user. syntax to create a Group called Members. syntax to create a user called AAAA and place in to the Group Members. Thanks for your help in Advance. (3 Replies)
Discussion started by: sawyer
3 Replies

10. Shell Programming and Scripting

user without group

hi i have vert strange query.. can we add user in unix with out assigned it to any group i mean user which is having no default group or anything.. like this in /etc/passwd file new_user:::::::: Please help (2 Replies)
Discussion started by: aishsimplesweet
2 Replies
usermod(8)						      System Manager's Manual							usermod(8)

NAME
usermod - modify a user account SYNOPSIS
usermod [-D binddn] [-P path] [-g gid [-o]] [-p password] [--service service] [--help] [--usage] [-v] account DESCRIPTION
usermod modifies an user account using the values specified on the command line. OPTIONS
-A, --add-to-group group,... With this option a list of groups can be specified, which the user should become a member of. Each group is separated from the next one only by a comma, without whitespace. -c, --comment comment This option specifies the new users finger information. It is normally modified using the chfn(1) utility. -d, --home homedir This option specifies the new home directory of the user. -e, --expire expire With this option the date when the account will be expired can be changed. expiredate has to be specified as number of days since January 1st, 1970. The date may also be expressed in the format YYYY-MM-DD. -f, --inactive inactive This option is used to set the number of days of inactivity after a password has expired before the account is locked. A user whose account is locked must contact the system administrator before being able to use the account again. A value of -1 disables this feature. -G, --groups group,... With this option a list of supplementary groups can be specified, which the user should become a member of. Each group is separated from the next one only by a comma, without whitespace. The user is removed from all other groups not specified. -g, --gid gid The group name or number of the user's new primary group. The group name must exist and a group number must refer to an already existing group. -l, --login name Specify the new account name for the user. The account name must begin with an alphabetic character and the rest of the string should be from the POSIX portable character class. Nothing else is changed. -m, --move_home Move the user's home directory to the new directory specified with the -d option. If the old directory does not exist, nothing is done. If the new directory already exists, the program aborts with an error. -o, --non-unique Allow duplicate (non-unique) User IDs. -p, --password password Encrypted password as returned by crypt(3) as the new password. -R, --remove-from-group group,... With this option a list of groups can be specified, from which the user should be removed. Each group is separated from the next one only by a comma, without whitespace. -s, --shell shell Specify user's new login shell. The value of shell must be a valid executable file. It is normally modified using the chsh(1) util- ity. -u, --uid uid Change the userid to be the given number. This value must be positive and unique (unless the -o option is used). Any file with the old UID of the user and which is located in the directory tree rooted at the user's home directory will be changed to be owned by the new UID automatically. -D, --binddn binddn Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica- tion. -L, --lock A system administrator can lock the account of the specified user. -U, --unlock A system administrator can unlock the specified account, if the account is not passwordless afterwards (it will not unlock an account that has only "!" as a password). -P, --path path The passwd and shadow files are located below the specified directory path. usermod will use this files, not /etc/passwd and /etc/shadow. --service service Modify the account from a special directory. The default is files, but ldap is also valid. --help Print a list of valid options with a short description. --usage Print a short list of valid options. -v, --version Print the version number and exit. NOTES
usermod will not allow you to change the name, User ID or home directory of a user, which is logged in. usermod will not change the User ID of running processes and not the ownership of crontab and at jobs. FILES
/etc/group - group information /etc/passwd - user account information /etc/shadow - shadow user account information SEE ALSO
passwd(1), login.defs(5), group(5), passwd(5), shadow(5), useradd(8), userdel(8) AUTHOR
Thorsten Kukuk <kukuk@suse.de> pwdutils Feb 2010 usermod(8)
All times are GMT -4. The time now is 03:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy