user management questions

Schott, Erik J Mr ANOSC/FCBS erik.schott-FCBS at NETCOM.ARMY.MIL
Thu Nov 18 22:05:32 UTC 2004


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 at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Blackburn, Marvin
Sent: Thursday, November 18, 2004 2:57 PM
To: redhat-list at redhat.com
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 at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list