How i can creat user with privilege in ubuntu 10.04 sever

Posted on

How i can creat user with privilege in ubuntu 10.04 sever – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about ubuntu, command-line-interface, ubuntu-10.04, linux, .

How can I create users with privilege in ubuntu 10.04 server by using CLI

Solution :

Create a (normal) user:

sudo adduser

Give user sudo rights. Default all admin users can sudo, so you can just move your new user into that group.

sudo usermod -a -G admin my_new_user

Or add it manually do the sudoers file (/etc/sudoers)

sudo visudo

And add

my_new_user    ALL=(ALL) ALL

I guess you are talking about being able to run sudo and stuff like that. Well for that to happen you have to belong to the admin group.

In order to keep this user as similar to another ubuntu user as possible the full command would be:

sudo groupadd foo
sudo useradd foo -g foo -G 'adm,disk,dialout,cdrom,plugdev,lpadmin,admin' -m

The most important one here is ‘admin’ as that would allow the user to run sudo which is probably what you want.

Leave a Reply

Your email address will not be published.