Ask Your Question

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

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

paulhr gravatar image

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

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

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

florian gravatar image

usermod -aG agroup buser
edit flag offensive delete link more


Thank you.

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

Question Tools

1 follower


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

Seen: 1,164 times

Last updated: Jul 27 '16