Sep 14, 2011
jason

How to add new user and grant permission?

Once you’ve got your new favourite Linux distro installed, you’ll need to add users and grant permission as per your organization requirement.

The steps are very simple and straightforward.

sudo adduser

If you want to grant a user to all permissions as root, you should add that user to admin group. For example :

sudo adduser jason admin

Make sure the line “%admin ALL=(ALL) ALL” is present in the /etc/sudoers. The below is the screenshot of sample config file.

sudoers_screenshot

After that you might want to set specific password for the new user. You can do this by using the following command:

sudo passwd

Source : AskUbuntu

Leave a comment