1
vote
0answers
131 views

Intermittent sudo failure - SuSE 10

We have a longstanding production issue where cron on certain servers periodically report the following error- sudo: uid NNN does not exist in the passwd file! The user does exist, in fact it is ...
2
votes
3answers
2k views

Password less sudo in script

I have passwordless access to a server. My user account has added in sudoers file for NOPASSWD usage for some services/daemons in /etc/init.d/. I want to write a script to start or stop a daemon ...
0
votes
2answers
508 views

sudo with -u via ssh -t in a crontab

I'm trying to create a cron job that uses ssh to login to a remote server and run a script as a different user. I try: * * * * * source $HOME/.keychain/$HOST-sh && sudo -u $USER ...
1
vote
2answers
619 views

Visudo All Password Less Access to Script (Visudo + Cron)

I want my user 'dave' to be able to run a bash script without entering a password, so the script can run with crontab? For all other activities I'd like this user to be required to enter a password ...
2
votes
3answers
2k views

the error occured a command in sudo from crontab

When I execute shell, but it is carried out by cron "sudo: sorry, you must have a tty to run sudo" appears. but how should this have dealt?