Search our database

How to create a new user to login as root privileges in linux

useradd test 
passwd test 

vi /etc/sudoers 

## Same thing without a password 
# %wheel ALL=(ALL) NOPASSWD: ALL 
test ALL=(ALL) NOPASSWD: ALL 


vi /etc/ssh/sshd_config 

at the last line add 
AllowUsers test 

service sshd restart