Ask Your Question
3

Add a group to a user from the command line as root.

asked 2016-07-27 09:40:11 -0600

paulhr gravatar image

updated 2016-07-27 09:52:59 -0600

florian gravatar image

I am using Fedora server, not workstation. As root I want to add the group "agroup" to the user "buser". When I use the usermod command as below it does not work. I just get the help text.

moduser -a agroup buser

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-07-27 09:48:08 -0600

florian gravatar image

http://linux.die.net/man/8/usermod

usermod -aG agroup buser
edit flag offensive delete link more

Comments

Thank you.

paulhr gravatar imagepaulhr ( 2016-07-27 10:02:16 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-07-27 09:40:11 -0600

Seen: 1,154 times

Last updated: Jul 27 '16