Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How 2 set crontab permission?

Status
Not open for further replies.

ZK

MIS
Oct 2, 2000
27
GB
Hi guys.

I have my crontab script:

"2 * * * 1-5 /home/users/ZK/cronftp.txt"

The command is to execute an ftp script.

I log into the linux server as the user ZK. I have installed my crontab script by entering the command "crontab cron1.txt"

But it doesn't seem to be working because the ftp is not being executed.

I am guessing it is a permission problem. When I try to find the cron.allow and cron.deny files, the server says there is no such file or directory, so how am I meant ot give myself permission?

Even when i log onto the server as admin, it cannot find the cron.allow/deny files.

Would chmod solve my problem? And is the syntax of my crontab script correct?

Thanks a lot!
ZK
 
ZK,

Is the cronftp.txt script executable? I beleive the right syntax for adding a new crontab is crontab -e, it will then open your crontab file with vi and then you add your entry,
2 * * * 1-5 /home/users/ZK/cronftp.txt.

The file cron.allow is not created by default, you must creat it, cron.deny should be there. Here is my cron.deny:

[root@myhost /etc]# cat cron.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess


Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top