Operating System - Tru64 Unix
1748014 Members
4432 Online
108757 Solutions
New Discussion

Re: 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 1
BR802898
New Member
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