Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-11-2005, 03:56 PM   #1
LQ Newbie
Registered: Mar 2002
Posts: 2

Rep: Reputation: 0
cron.allow and cron.deny in slackware?


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)
Old 10-11-2005, 04:34 PM   #2
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 767

Rep: Reputation: 62
man crontab

or /usr/doc/dcron-2.3.3

slackware uses dcron (dillon's cron) along with many distros

its handy to be familiar with vi editor, as crontab -e uses it

type vimtutor for a great intro to vi.....
Old 10-12-2005, 12:58 PM   #3
LQ Newbie
Registered: Mar 2002
Posts: 2

Original Poster
Rep: Reputation: 0
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?

Still searching....

Old 10-12-2005, 01:50 PM   #4
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
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).
Old 10-12-2005, 04:20 PM   #5
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 767

Rep: Reputation: 62
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.

is that what you mean?

Old 10-13-2005, 09:44 PM   #6
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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...
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.

-rwx------ 1 root wheel 24864 Apr 27 09:02 /usr/bin/crond*
-rwsr-x--- 1 root cron 24311 Apr 27 09:02 /usr/bin/crontab*


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 04:28 PM
Cron chaning back hosts.deny! filiphw Linux - Security 6 12-30-2003 02:09 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration