Search Technoduniya

How can I add a user to a group under Linux operating system?

You can use useradd or usermod commands to add a user to a group. useradd command creates a new user or update default new user information. usermod command modifies a user account i.e. it is useful to add user to existing group. There are two types of group. First is primary user group and other is secondary group. All user account related information is stored in /etc/passwd, /etc/shadow and/etc/group files to store user information.


useradd example


useradd -G {group-nameusername


# grep developers /etc/group

About This Blog

Disclaimer

All data and information provided on this site is for informational purposes only. Technoduniya.blogspot.com makes no representations as to accuracy, currentness, or validity of any information on this site and will not be liable for any errors, or delays in this information.privacy policy and disclaimer

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP