Re: Vote for new Ubuntu Feature---Let's try it again
- From: "Jeffrey F. Bloss" <jbloss@xxxxxxxxxxxxxxx>
- Date: Tue, 9 Jan 2007 23:24:50 -0500
Robert Aldridge wrote:
From: Wulfy <wulfmann@xxxxxxxxxxxxx>
OK. Let's work this through. If I sudo <command> (and am
authorised to so that command) my privileges are upped to root (or
whatever is given to me in the sudoers file). Does that only work
for that one command? Do I have to use sudo for every command and
put my password in each time?
Try doing 'sudo su' in a terminal (console/Konsole, whatever) when
you want to do several commands as root. This promotes you to root
until you enter the command 'exit' which drops you back to your user
account.
The right way to do this is 'sudo -i'. This starts your interactive
shell and resets the environment to root's, unlike 'sudo su' or even
'su -'.
To be honest, I've never seen anyone use 'sudo su' before. Sems to work
just like 'su', but to my way of thinking this is like saying "give me
permission to become as root so I can run a command that makes me
root". And if you look in auth.log Id' wager you'll see just that.
"Root became root" or something to the effect. The programmer side of
me, if it were in knee jerk mode, would label anything that happens
after that as "undefined behavior". ;)
--
_?_ Outside of a dog, a book is a man's best friend.
(o o) Inside of a dog, it's too dark to read.
-oOO-(_)--OOo-------------------------------[ Groucho Marx ]--
grok! Registered Linux user #402208
Attachment:
signature.asc
Description: PGP signature
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: Vote for new Ubuntu Feature---Let's try it again
- From: Derek Broughton
- Re: Vote for new Ubuntu Feature---Let's try it again
- References:
- Re: Vote for new Ubuntu Feature---Let's try it again
- From: Robert Aldridge
- Re: Vote for new Ubuntu Feature---Let's try it again
- Prev by Date: Re: Change Permissions on a new hard drive to allow
- Next by Date: Re: (Off-topic) Software Information: "AutoCad for linux"
- Previous by thread: Re: Vote for new Ubuntu Feature---Let's try it again
- Next by thread: Re: Vote for new Ubuntu Feature---Let's try it again
- Index(es):
Relevant Pages
|