Running a Root Shell in Ubuntu 13.04

A little over a year and a half ago, a fellow engineer wrote an article for Enabling the Root Password in Ubuntu 11.10 (instead of using sudo). The article was geared towards providing a convenient way to run root commands in a shell without the need to constantly type “sudo” at the beginning of every command.

Example:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove

Today, I would like to present an alternate method of accomplishing the same task.

At the command prompt type

sudo su

You will be prompted for your sudo password. After entering your sudo password and hitting Enter, you will be dropped into a root shell. The prompt will be similar to this:

root@ubuntu-pc:/home/dave#

Any commands you type moving forward will be done using root privileges (so be careful!). When you are finished, you can simply press CTRL-D or type “exit” and hit Enter. This will drop you back into your regular user shell.

dave@ubuntu-pc:~$ sudo su
[sudo] password for dave:
root@ubuntu-pc:/home/dave# exit
dave@ubuntu-pc:~$

Both methods of running a root shell (this and the previous method) have their advantages and disadvantages. I leave it to the reader to decide works best for them.

Asigra Linux Restore with ‘sudo’

Conduct an Asigra restore to a UNIX or Linux server using sudo credentials

Verify that user is listed in /etc/sudoers file on restore target system

media_1373309867237.png

The sudo utility allows users root level access to some (or all) subsystems without requiring users to know the root password. Please look at documentation for the sudo utility for more information.

From Asigra restore dialog, choose files to be restored

media_1373309875752.png

Select Alternate location and click on ‘>>’

media_1373310026490.png

Enter server name or IP address for restore target and check both “Ask for credentials” and “‘sudo’ as alternate user’

media_1373310083088.png

Enter username and password for user configured in /etc/sudoers file

media_1373309230681.png

Enter “root” and same password as in previous step

media_1373309513645.png

Do NOT enter the ‘root’ password. The sudo utility uses the regular user’s password.

Select restore location and truncate path, if required

media_1373309543033.png
media_1373309558317.png

Accept defaults

media_1373309569710.png

Restore in progress…

media_1373310480356.png

Verify restore completed

media_1373310743301.png