Anvar Freelance Web Designer and SEO Expert Logo
01 / 01
WhatsApp Logo +91 808 999 0405

Ubuntu root user and add a user to root user group

1. How can i get root access in ubuntu. easy to become root in ubuntu

lb@lb:~$ sudo su -
[sudo] password for lb:
root@lb:~# pwd
/root
root@lb:~# whoami
root

Note:Use your current password for pasword (Administative account)
2.You can add a user to root user group by following the below information.

lb@lb:~$ sudo su –
[sudo] password for lb:
root@lb:~# sudo visudo

Edit the file and add the add the + line in the configuration file
Then press the

Ctrl + X

then press Y to confirm

# User privilege specification
root ALL=(ALL:ALL) ALL
+ lb ALL=(ALL:ALL) ALL
by anvar
Published : Mar , 3

Post a comment

Your email address will not be published. Required fields are marked *