Linode Forum
https://forum.linode.com/

Postfixroot aliases not working
https://forum.linode.com/viewtopic.php?f=11&t=5496
Page 2 of 2

Author:  rsk [ Tue Apr 27, 2010 10:35 am ]
Post subject: 

Quote:
/bin/sh:
- this is the originator of the message; a shell that was called through the literal name /bin/sh command tells you that
Quote:
root:

this command
Quote:
not found
doesn't exist in $PATH.

Quote:
02 1 * * * root clamscan -R /var/www

The "username" field exists only in the systemwide crontab (/etc/crontab, /etc/cron.d/*), and this is most probably user's personal crontab, that always executes as him. Thus, cron interprets the word "root" as the first word of command line.

If clamscan needs to be ran as root, move the lines to /etc/crontab.
If he can run as the user that you're currently operating as, remove "root " from the lines.

Author:  jollyjumper [ Tue Apr 27, 2010 1:00 pm ]
Post subject: 

I got it!
Again thanks for all your time and knowledge sharing. I give you 5 stars + bonus *****@

Page 2 of 2 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/