[ale] Sudo

Jim Popovitch jimpop at yahoo.com
Wed May 18 20:06:45 EDT 2005


On Wed, 2005-05-18 at 18:42 -0400, Michael B. Trausch wrote:
> Jim Popovitch wrote:
> > Several times in the (still going)
> > setuid/viral/malware/root/non-root/etc discussion people have mentioned
> > using sudo.  One of the things I've always disliked about sudo is the
> > need for me to have to preface some commands I want to run as su vs
> > which I don't.  What I mean is as a user if I want to run "ifconfig eth
> > mtu 1149", I need to acually run "sudo ifconfig eth0 mtu 1149", but if I
> > want to just see what the MTU is for interface eth0 I don't need sudo.
> > What I think would be neat is for bash (or other shells) to remember
> > sudo commands that users run and to automatically invoke sudo the next
> > time I run the command without it.  Knowing when to use sudo is not the
> > issue here, having sudo know when it is needed is.  
> > 
> 
> You should need to enter a password to change the MTU.  Of course, you
> can just run /sbin/ifconfig at any time without root access to see what
> interfaces are up or not.

I know that.  You are missing the question (please read things carefully
before quickly posting)

> And, such functionality is already in bash, if you want to use it.
> Place the following command in your .profile / .bash_profile / .bashrc
> (whichever is configured to run on your system) file:
>
> 
> alias ifconfig='sudo ifconfig'

That is not.... oh nevermind, it's obviously not worth even trying to
explain.  

Sorry dude, you are out in left field,

-Jim P.






More information about the Ale mailing list