Re: usermod

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

 



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@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program

-- 
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