For users and new users who are using Ubuntu, It is very challenging to manage users and groups, especially when Ubuntu does not contain management tools for legacy users and groups. In earlier versions of Ubuntu, you can easily manage users and groups using the user management tool under Gnome system tools.
Now, this tool is not available on Ubuntu. Now, the only tool only allows you to create, manage, and delete users. If you need to add or delete users from the group in Ubuntu, you will need to use the command line terminal or console.
For example, if you want to allow some users to access files or improve their access permissions, the best way is to change the group permissions. You can create a group and grant the group the correct permissions. When adding a user to the Group, the user can obtain the same permissions as the group.
Because Ubuntu cannot easily manage permissions using tools, this concise tutorial will show you how to use the command line to complete the above operations. This is just a line of code. Once you understand it, this is not difficult.
Start. Press Ctrl-Alt-T to open the terminal.
View all the groups on Ubuntu, type the command groupmod, and press the tab key three times)
Groupmod <press tab three times for connection>
This will list all user groups on your system. Now, add a user to an existing group and run the following command:
Sudo adduser user name group name
For example, if you want to add Richard to the sudo group, run the following command:
Sudo adduser richard sudo
Okay. Verify the user group and run the following command:
Id richard
Try it!
Set normal users to sudo permissions in Fedora 18
Common Linux User Management
In-depth understanding of user management commands such as useradd and manual creation of users
Reasonably use su and sudo commands to ensure system user security
How to delete users and groups using userdel in Linux
Common commands for Linux user and group management
It is up to you to define Linux User Permissions -- sudo command
Via: http://www.liberiangeek.net/2013/09/daily-ubuntu-tips-adding-users-existing-groups/
This article was originally translated by LCTT and launched with the Linux honor in China
Translator: Luoxcat Proofreader: wxy