Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
Showing results for 
Search instead for 
Did you mean: 

how to block cronjob for different users

Go to solution
Occasional Contributor

how to block cronjob for different users

How the ftp service and cron job can be blocked for various users specially system accounts accounts like lp,adm,nobody....etc.

Thanks in advance.
Occasional Visitor

Re: how to block cronjob for different users


You can block ftp access for users by putting them in /etc/ftpusers, se the man-page ftpusers.

You can block users from using cron in 2 ways:

You can put users that are allowed to use cron in the file /usr/lib/cron/cron.allow, this way all other users are blocked from using cron

or you can put users in the file /usr/lib/cron/cron.deny, then the users specified cannot use cron.

for more info take a look at the crontab man-page.

You can also specify an at.allow/at.deny file for the at command