Tagged Questions
1
vote
0answers
62 views
External HDD read/write permission changing from a cron job
So, I run an overnight python script that runs a backup of our web data in the /var/www directory, then moves the backups to an external HDD in /media. The script in scheduled in the sudo crontab ...
1
vote
1answer
103 views
security concern around adding cron user to web application group
I have a permissions issue on my CentOS 5.6 machine with regards to the cron user.
On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below:
...
1
vote
1answer
187 views
Cron job - permission denied creating a file
I have a cron job:
#!/bin/bash
fn=db.backup.$(date +%m-%d-%y).sql
mysqldump -uMyUsr -pMyPass --add-drop-table dbName> $fn
find ./ -name '*.Z' -type f -mtime +7 -exec rm -f {} \;
I get an error:
...
4
votes
1answer
131 views
Emptying a directory owned by another user weekly
I have a temp directory set up where users can place whatever files they need to send to other users via HTTP. The owner of this directory is an SFTP user, and cannot run cron jobs.
I have one shell ...
4
votes
2answers
448 views
/etc/crontab permissions
The /etc/crontab file has the permissions:
-rw-r--r--
I understand that this file is for system cron jobs and other users should not have permission to modify it. The current permissions allows all ...
5
votes
3answers
1k views
Frustrating issue where neither cron nor su -c runs my job (permissions?)
Updated (and snipped) with more details below.
I've set up a cron script and I'm trying to debug why it's not running. [Snipped context testing, which is all ok; see revision 2 for details] The ...