[frgeek-michiana] Stupid Ubuntu tricks

  • From: Mike Cook <mikecook@xxxxxxxxxxxx>
  • To: frgeek-michiana@xxxxxxxxxxxxx
  • Date: Mon, 1 Mar 2010 20:32:23 -0500

To get a root command prompt in Ubuntu:

su ~ ==> sudo -i -H 
su ==> sudo -s
su <user> ==> sudo -u <user> -i

To return to your regular user prompt type:
exit

-i simulates an initial login
-H sets the HOME environmental variable to the targets home directory
-s opens a shell
-u specifies a user other than root
** This list is PUBLICLY archived. **
PLEASE don't post personal or sensitive information unless you wish for it to 
be in the public domain.

To visit the main website for Free Geek Michiana go to 
http://www.freegeekmichiana.org

To post to the list send email to frgeek-michiana@xxxxxxxxxxxxxx
The archive is available at //www.freelists.org/archives/frgeek-michiana/

You may unsubscribe or change your list settings by going to the list website 
at //www.freelists.org/webpage/frgeek-michiana

Other related posts: