usermod
Ed Wilts
ewilts at ewilts.org
Wed Mar 30 15:47:16 UTC 2005
On Wed, Mar 30, 2005 at 08:20:44AM -0600, Steve Buehler wrote:
> I know you can use "usermod" on RedHat Linux to add a user to another group
> by typing:
> usermod -G sam,frank steve
> This would effectively add steve to the "frank" and "sam" group. How do
> you remove them from those groups without editing the /etc/group file
> manually?
man gpasswd.
This appears to be a very little-known tool. I don't know why that's
so, but it is a great utility for exactly this reason.
To remove the group sam from user steve:
# gpasswd -d steve sam
--
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program
More information about the redhat-list
mailing list