cron job permission denied

2 posts / 0 new
Last post
#1 Wed, 01/19/2011 - 15:00
testmoohyellow

cron job permission denied

Hi,

I scheduled a cron job, executed as root and command is /etc/webmin/backup/scripts/justatest

After the job run, I get an email telling me: /bin/sh: /etc/webmin/backup/scripts/justatest: Permission denied

When I run the script manually it works. This is the script:

!/bin/sh

touch /etc/webmin/backup/test.txt exit 0

owner/group of justatest is root, permission 755

Any ideas why I get permission denied?

Thanks, Sebastian

Sat, 01/22/2011 - 13:44
virtualmachine

chmod +x justatest ?

Topic locked