atul25khanduri
5/14/2016 - 7:32 AM

Linux Commands

Linux Commands

Run commands as super user

By default root account is locked under Ubuntu Linux. Therefore, you cannot login as root or use su - command to become a superuser.

You can use below methods to run commands as Adminintrator:

Add sudo before each command

Avoid typing sudo each and every time

sudo -i => This will start /bin/bash as a root shell so that you can enter a root user command without using sudo command.

Login as root user

sudo bash or sudo -s

Change root user password

sudo passwd root => Give new password to root and use su - command to enter in root shell.