Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Automating sudo actions

by kirillm (Friar)
on Jan 26, 2011 at 08:48 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-08-15 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?