RE: user management questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marvin.  Yes, you COULD directly edit /etc/passwd, but that is far from
the recommended means to change the user's primary group.  Use, instead,
usermod -g <gid> <username>.  These changes are not propagated to
/etc/shadow and /etc/gshadow, but propagated to /etc/passwd by the inner
workings of the useradd binary.

HTH.

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Blackburn, Marvin
Sent: Thursday, November 18, 2004 2:57 PM
To: redhat-list@xxxxxxxxxx
Subject: user management questions


I am new to the shadow password file processing and Have a question.
How do I properly change a users primary group.

Can I just enter it into the /etc/passwd file?
How do the changes get propogated to /etc/shadow and /etc/gshadow?

Any help would be appreciated.
I am running redhat as 2.1

------------------
Marvin Blackburn
Systems Administrator
Glen Raven
"He's no failure.  He's not dead yet" --William Lloyd George  

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux