System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to block cronjob for different users

SOLVED
Go to solution
CA1309511
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.
1 REPLY
BR802898
Occasional Visitor
Solution

Re: how to block cronjob for different users

Hi,

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

Cheers,
Kasper