Computing.Net > Forums > Linux > How 2 set crontab permission?

How 2 set crontab permission?

Reply to Message Icon

Original Message
Name: ZK
Date: January 9, 2001 at 03:02:03 Pacific
Subject: How 2 set crontab permission?
Comment:

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


Report Offensive Message For Removal

Response Number 1
Name: Mike Johnson
Date: January 11, 2001 at 14:51:17 Pacific
Subject: How 2 set crontab permission?
Reply: (edit)

Try adding the script to your default user
script instead.

crontab -e

will open up vi and you can edit it from
there. If you're curious to see if it got
your changes, type "crontab -l" and see the
whole script.

As for the syntax being correct, it certainly
looks good. It depends how often you want it
to work. I'm not real up on crontabs, but I
read this as execute on the second minute of
every hour, monday through friday.

- Mike Johnson


Report Offensive Follow Up For Removal

Response Number 2
Name: marsd
Date: January 12, 2001 at 19:15:10 Pacific
Subject: How 2 set crontab permission?
Reply: (edit)

you can alter permissions for crontab in
/etc/permissions but you shouldn't need to.
You can also look into giving sudo privileges to a group so they can use
crontab freely in the future if that is
more convenient.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How 2 set crontab permission?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software