Ubuntu tutorial -- add a user to an existing group

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.