How to Create a New USER with ROOT Privileges in Linux

Aaron Lavers

Member
Registered
Joined
May 20, 2016
Messages
61
Points
8
Alternative to root account, I want to have the second 'root" account by creating a new user with ROOT Privileges in Linux? how can I do that?
 

ValeriaMxc

New member
Registered
Joined
Oct 12, 2012
Messages
12
Points
0
Simply login into your root account and create a new user

Code:
adduser mynewuser
Set password for mynewuser
Code:
passwd mynewuser

Grant Root Privileges to the User

Code:
visudo
At this step, Ctrl+ W if you use nana editor and search for

Code:
root ALL=(ALL) ALL
Add below

Code:
mynewuser ALL=(ALL) ALL

Ctrl+X to exit nano and logout your SSH. Try to login with your new account and now it's also an account with root privileges.

Good luck!
 
Latest Threads
Replies
0
Views
89
Replies
0
Views
55
Replies
0
Views
49
Replies
1
Views
81
Recommended Threads
Replies
5
Views
3,283
Replies
1
Views
1,940
Replies
5
Views
5,341
Replies
16
Views
7,687

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top