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

Leave a Reply

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