Sudo explained for dummies

James Finstrom jfinstrom at rhinoequipment.com
Wed May 27 11:21:15 MST 2009


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, kitepilot at kitepilot.com <
kitepilot at kitepilot.com> 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 at myhost ~]$ make_me_a_sandwich
> > What? Make it yourself
> > [me at 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 - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090527/625abee0/attachment.htm 


More information about the PLUG-discuss mailing list