SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I allow/deny users from using cron? Do we use cron.allow / cron.deny or something else? Thanks...
(I searched everywhere including slackbook but no specific info)
Thanks for the response. I've read the man page, slackbook from slakcware website, and the /usr/doc/dcron-2.3.3 info. Nothing mentioned about crontab.allow/deny or similar method to authorize user to use it. Is there any other referenecs?
As far as I know, Dillons Cron doesn't support a config file to allow/deny users to edit their cron jobs.
The easiest way to get a similar system would be to remove the others+execute permission on /usr/bin/crontab and add the users you want to the group bin (the group crontab belongs too, or change bin to another group of your choice).
crontab is controlled by root. root specifies which users may have access to cron.
from man cron:
crontab manipulates the crontab for a particular user. Only the superuser may
specify a different user and/or crontab directory. Generally the -e option is used
to edit your crontab. crontab will use /usr/bin/vi or the editor specified by your
VISUAL environment variable to edit the crontab.
This is from the README in /usr/doc/dcron. It goes against the Slackware policy of having root:bin permissions on files inside /usr/bin, but...
Quote:
Permissions should be as outlined below. You will want to create a
special 'cron' group in which you put those users that are allowed
to use the crontab program.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.