How to work around “sorry, you must have a tty to run sudo” without sacrificing security

Mar 17, 2010 20:21


This entry was originally published at my site's personal web log. Additional information or comments may be available on the original posting.
While working on $client’s Linux server last week, I found myself installing a cron job that ran as root. The cron job called a custom bash script that, in turn, called out to various custom maintenance ( Read more... )

security & privacy, bash/shell scripting, tech/computing, unix/linux

Leave a comment

Comments 1

anonymous September 13 2010, 05:58:20 UTC
Oh, nice, I'll have to file this for reference. I've run into this one before, though I've used either expect or pexpect to get around the tty requirement (with authentication_keys to eliminate password slinging). This is simpler...

Reply


Leave a comment

Up