sudo and /etc/sudoers

scott redhowlingwolves at nc.rr.com
Mon Dec 29 04:47:55 UTC 2008


Res wrote:
> On Sun, 28 Dec 2008, Matthew Flaschen wrote:
>
>   
>> Res wrote:
>>     
>>> yeah, but its NOT by *default*, thats the entire point.
>>>       
>> The point being we should always only use security features exactly with
>> default settings?  Okay, you do that on /your/ box.
>>
>> Matt Flaschen
>>     
>
> You clearly have not followed this and previous discussions on this to 
> understand where I was coming from, so you are forgiven.
>
>
>   
I have followed many exchanges in this thread, and many others.
I regularly use sudo -K.

What is the preference of sudo -i vs sudo -s?
It seems to me that sudo -i, according to the man pages : " option runs
the shell specified in
           the passwd(5) entry of the user that the command is being run
as."
 Sudo -s ' man page says: " option runs the shell specified by the SHELL
envi‐
           ronment variable if it is set or the shell as specified in
           passwd(5)."
So it seems to me that if you specify a different shell..eg: zsh vs
bsh...there would be no difference in security. Maybe even more,
depending on what shell you are running and the permissions set for that
shell. Right?




More information about the ubuntu-users mailing list