Subscribe to How-To Geek

Make Ubuntu Stay in Root Mode

Instead of having to constantly type in 'sudo' every time you need to make an admin change, you can use one of these commands to act as root.

To switch to full root mode:

sudo -s -H

To switch to using root mode, but still act as your user account:

sudo -s

The Geek is the founder of How-To Geek and a geek enthusiast. This article was written on 09/11/06 and tagged with: Ubuntu, SysAdmin

Daily Email Updates

You can get our how-to articles in your email inbox each day for free. Just enter your email below:


Comments (5)

  1. Manjula

    This is always good, if you are familiar with System Administration and you should know what you are doing :-)

  2. Alekz

    Good to know! In Fedora you would just do:

    su -

    :)

  3. Shon

    You could also sudo bash which will keep you in root mode until you close the terminal window

  4. Joe

    This one does the job, too:

    sudo su

  5. harry

    Actually, joe, that doesn't quite do the trick.

    sudo su - root

    is the proper way to do it. Seriously though. An entire post on switching to root? Really?


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.