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
1
Views
24
Replies
0
Views
176
Replies
1
Views
37
Replies
2
Views
81

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