I hope I'm writing to the right list. This isn't a question unique to SuSE. I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny. What am I missing?
On Wednesday 05 January 2005 17:50, Tim Hanson wrote:
I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny.
From the cron manpage: If the cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the cron.allow file does not exist but the cron.deny file does exist, then you must not be listed in the cron.deny file in order to use this command. If neither of these files exists, only the super user will be allowed to use this command. Do you have an allow file? Also, the preferred way of editing individual users crontabs is via crontab -e not by directly editing the crontab file. If I remember correctly the default under SuSE 9.2 was that after install you can just do crontab -e and edit your crontab file. Brana
On Wednesday 05 January 2005 05:50 pm, Tim Hanson wrote:
I hope I'm writing to the right list. This isn't a question unique to SuSE.
I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny.
What am I missing?
Not much I don't think... except that in my opinion the crons would be in: /var/spool/cron/tabs/<username> and all the user has to do is to issue: crontab -e and they will be editing their own crontab (the above is the way it has been in SUSE for quite awhile)
On 18:39 Wed 05 Jan , Bruce Marshall wrote:
On Wednesday 05 January 2005 05:50 pm, Tim Hanson wrote:
I hope I'm writing to the right list. This isn't a question unique to SuSE.
I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny.
What am I missing?
Not much I don't think... except that in my opinion the crons would be in:
/var/spool/cron/tabs/<username>
and all the user has to do is to issue:
crontab -e
and they will be editing their own crontab
(the above is the way it has been in SUSE for quite awhile)
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
...Or, if they're using KDE, kcron will do the trick. -- ..."Yogi" CH Namasté Yoga Studio Closed 15DEC - 3JAN
On Wed, 2005-01-05 at 18:39 -0500, Bruce Marshall wrote:
On Wednesday 05 January 2005 05:50 pm, Tim Hanson wrote:
I hope I'm writing to the right list. This isn't a question unique to SuSE.
I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny.
What am I missing?
Not much I don't think... except that in my opinion the crons would be in:
/var/spool/cron/tabs/<username>
and all the user has to do is to issue:
crontab -e
and they will be editing their own crontab
(the above is the way it has been in SUSE for quite awhile)
I found kcron which allowed me to edit the new definitions. Trying to save or exit brought up an error. /usr/bin/crontab -e brought up: You (timh) are not allowed to use this program (crontab) See crontab(1) for more information and as root: You (root) are not allowed to use this program (crontab) See crontab(1) for more information I assume this is a problem with /etc/cron.allow or /etc/cron.deny. I edited cron.allow as follows: root root timh hans
On Wednesday 05 January 2005 08:30 pm, Tim Hanson wrote:
On Wed, 2005-01-05 at 18:39 -0500, Bruce Marshall wrote:
On Wednesday 05 January 2005 05:50 pm, Tim Hanson wrote:
I hope I'm writing to the right list. This isn't a question unique to SuSE.
I've been to LDP, the SuSE admin manual, and a few other help pages. How do I give users access to cron? From what I can gather, the crontab for user egbert, for example, should be /var/spool/cron/egbert/crontab. Also, his user name shouldn't be in /var/spool/cron/deny.
What am I missing?
Not much I don't think... except that in my opinion the crons would be in:
/var/spool/cron/tabs/<username>
and all the user has to do is to issue:
crontab -e
and they will be editing their own crontab
(the above is the way it has been in SUSE for quite awhile)
I found kcron which allowed me to edit the new definitions. Trying to save or exit brought up an error. /usr/bin/crontab -e brought up:
You (timh) are not allowed to use this program (crontab) See crontab(1) for more information
and as root: You (root) are not allowed to use this program (crontab) See crontab(1) for more information
I assume this is a problem with /etc/cron.allow or /etc/cron.deny. I edited cron.allow as follows:
root root timh hans
Something must be farkled in your installation then. I just tried crontab -e as a normal user and it works fine. And I have changed nothing. (and I don't use it as a normal user) -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 01/05/05 20:45 + +----------------------------------------------------------------------------+ "Mr. Rogers is an ordained minister."
* Tim Hanson
I assume this is a problem with /etc/cron.allow or /etc/cron.deny. I edited cron.allow as follows:
root root timh hans
You assume correctly. As root make a file /var/spool/cron/deny, or allow if you prefer. In deny, place guest and gast and ...., or put those allowed in 'allow'. report please trim your replies. thanks, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (5)
-
Branimir Vasilic
-
Bruce Marshall
-
C Hamel
-
Patrick Shanahan
-
Tim Hanson