FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-19-2009, 01:33 PM
"Thomas H. George"
 
Default Live-Helper. Became root

On Wed, Feb 18, 2009 at 06:55:09PM -0500, Thomas H. George wrote:
> I have forgotten how to become root on a customised usb-hdd which I
> built with the aid of lh_clean, lh_config and lh_build. The system
> boots nicely from the usb stick and opens a gnome desktop. I can open
> console displays (F1, etc) as a regular user but I wish to switch to
> root to make some modifications.
>
> Tom
>
After further experiment I found sudo bash lets me become root and su
user returns to the default normal user.

Tom
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-19-2009, 02:05 PM
Micha Feigin
 
Default Live-Helper. Became root

On Thu, 19 Feb 2009 09:33:14 -0500
"Thomas H. George" <lists@tomgeorge.info> wrote:

> On Wed, Feb 18, 2009 at 06:55:09PM -0500, Thomas H. George wrote:
> > I have forgotten how to become root on a customised usb-hdd which I
> > built with the aid of lh_clean, lh_config and lh_build. The system
> > boots nicely from the usb stick and opens a gnome desktop. I can open
> > console displays (F1, etc) as a regular user but I wish to switch to
> > root to make some modifications.
> >
> > Tom
> >
> After further experiment I found sudo bash lets me become root and su
> user returns to the default normal user.
>

You are running too many nested bash sessions this way.

The better way if you don't know (or there is no) the root password is to do
sudo su to become root and either Ctrl-D on an empty line or logout to go back
to the regular user

Otherwise sudo bash runs another bash session and sudo user leaves root logged
in and adds to the stack of user logins.

> Tom
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org
> >
> >
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 08:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org