How to add a user to a group?

I keep on forgetting this command, so I put it here to remember it forever. To add a user ‘ketan’ to the group ‘admin’, do the following

gpasswd -a ketanĀ  admin

Such a simple and each to use command!!!

This entry was posted in linux and tagged , , . Bookmark the permalink.

Leave a Reply