Re: Sudo explained for dummies

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: James Finstrom
Date:  
To: Main PLUG discussion list
Subject: Re: Sudo explained for dummies
I would simply:



#!/bin/bash
if [ $SUDO_COMMAND ]; then
echo "okay"
else
echo "WHAT? Make it your self"
fi



James Finstrom
Rhino Equipment Corp.
Twitter: http://twitter.com/rhinoequipment





On Wed, May 27, 2009 at 11:12 AM, <
> wrote:

> Silly me... :)
>
> Source:
> http://www.kitepilot.com/make_me_a_sandwich.txt
>
> Download:
> http://www.kitepilot.com/make_me_a_sandwich.sh
> ET
>
>
>
> Stephen writes:
>
> > [me@myhost ~]$ make_me_a_sandwich
> > What? Make it yourself
> > [me@myhost ~]$ sudo_make_me_a_sandwich
> > ok
> >
> > --
> > A mouse trap, placed on top of your alarm clock, will prevent you from
> > rolling over and going back to sleep after you hit the snooze button.
> >
> > Stephen
> > ---------------------------------------------------
> > PLUG-discuss mailing list -
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss