sudo use

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Scott Sawyer
Date:  
Subject: sudo use
anyone know how with su or sudo to set the home directory to be something
other than what is in /etc/passwd or the executing PWD? Specifically in
an init script starting a service as an alternative user such as webapp

-Scott

--
Scott Sawyer                o:    928 226 0404
Owner                    c:    602 920 0083
Scott Sawyer Photography        http://www.scottsawyerphotography.com
Capturing today's moments, forever


On Thu, 4 Dec 2003, Jeremy C. Reed wrote:

> On Thu, 4 Dec 2003, Michael Havens wrote:
>
> >
> > How do you add a user to the sudo file and how does one use sudo? I tried
> > 'sudo <comand>' but it responded that my user wasn't in that list and that I
> > would be reported (ouhhhh I'm scared now). I assume I was correct in my usage
> > but lets ask to make sure.
>
> What was your "usage"? (Show us how you set up that user.)
>
> The simplest way is:
>
> username ALL=(ALL)       ALL
> or
> %groupname ALL=(ALL)       ALL

>
>    Jeremy C. Reed
>    http://www.reedmedia.net/

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