[Linux] Ubuntu 7.10 and su or sudo

Danny Rathjens linux@flux.org
Mon, 14 Jan 2008 20:45:12 -0500


"violate security" and "violating sudo security" by running a shell
are two quite different things.  :)  I didn't mean to accuse you of anything naughty.
I keep a permanent root shell on my desktop for running administrative commands.
(and xscreensaver to lock my screen when afk)

Bypassing(better word?) sudo security is certainly ok if you know what you are doing
and it isn't against policy on someone else's machines.  (e.g. some
companies require running everything through sudo not for security so
much as logging what administrative changes have been made.)

Steven Benmosh wrote:
> It is not that I am trying to violate security, it is that when you run 
> a lot of commands typing sudo every time can become a nuisance. For that 
> purpose, you use sudo su.
> 
> I have a web site which is owned by a non-admin user, and then I have to 
> edit files as root to make it work (in /etc/apache2 and /etc/appnames/, 
> or move files from archives not owned by the user, etc.).
> 
> Thanks for all the help.
> 
> Z.
> 
> On Jan 14, 2008 12:26 PM, Mike Marschall <mmarschall@yahoo.com 
> <mailto:mmarschall@yahoo.com>> wrote:
> 
> 
>     On Jan 14, 2008, at 10:21 AM, Danny Rathjens wrote:
> 
>      > Steven Benmosh wrote:
>      >> sudo su
>      >
>      > sudo already runs the command specified as root, so running a
>      > command to switch user to root is quite redundant.
>      > sudo bash
>      > Is a more straightforward way to violate sudo security.
> 
>     sudo -s
>     _______________________________________________
>     Linux mailing list
>     Linux@flux.org <mailto:Linux@flux.org>
>     http://www.flux.org/mailman/listinfo/linux
> 
> 
> 
> 
> -- 
> Check out my web site - www.words2u.net <http://www.words2u.net>