Jul
11

How to switch into ‘root’ user on an Ubuntu desktop

Just an another simple tip for the Ubuntu desktop users.

Ubuntu wont allow you to login as root due to some security reasons. But we need the root privilage for ‘apt-get’, process restart etc. Most of the users use ‘sudo’ to execute these tasks, which will run the command with ‘root’ privilages. But you can simply switch into the root user by using the following command:

sudo su -

Type the password for the normal user and you will be switched into root.

faheem@tip:~$ sudo su -

[sudo] password for faheem:

root@tip:~# /etc/init.d/mysql restart

* Stopping MySQL database server mysqld [ OK ]

* Starting MySQL database server mysqld [ OK ]

root@tip:~#

1 Comment to “How to switch into ‘root’ user on an Ubuntu desktop”

Post comment

Follow us on Twitter! Follow us on Twitter!
http://twitter.com/efheem
The next version of Ubuntu is coming soon

Recent Posts

Recent Comments

Firefox Download Button
Google Analytics Alternative Add to Technorati Favorites Technology Blogs - BlogCatalog Blog Directory Free Hit Counter Technology Google Analytics Alternative Blog Buzzer