Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Automating sudo actions

by kirillm (Friar)
on Jan 26, 2011 at 08:48 UTC ( [id://884304]=note: print w/replies, xml ) Need Help??


in reply to Automating sudo actions

EDIT: Re-reading the thread, I see that this is not what you're looking for.

If you're admin on that box, then you can avoid password prompt by using NOPASSWD in the sudoers file. Like this:

# User privilege specification root ALL=(ALL) ALL ftpauth ALL=(ftpdata) NOPASSWD: /bin/mkdir
Which will allow the user ftpauth to run mkdir as user ftpdata without asking for password.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://884304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-23 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found