Create new user in unix with root permissions

1. Add new user

root@0d9d9ddf04bb:~# useradd anil

2. set password

root@0d9d9ddf04bb:~# passwd anil
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

3. Tye sudo visudo, add below entry at the end

anil ALL=(ALL) NOPASSWD:ALL

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: