>I think that was the initial question concerning cron behaviour. I haven't >had a look at the crontab sources but this would be a bad default. Refering >to the last sentence, did you tried with a newly added unprivileged user?
On S.u.S.E 10 and 11 this is vixie-cron V4.1 from man crontab: crontab - maintain crontab files for individual users (ISC Cron V4.1) On Debian 8.10 this gives: V3 And the man crontab notices, that if no file deny|allow exists, it is site-dependent if all users can use crontab or only root. Default for Debian is allow all users in this case. Try this on ubuntu allows all users to run crontab. NOTICE: However this check is only run in crontab. Means if you already have a crontab file, it is still used although crontab says you're not allowed: You (thomas) are not allowed to use this program (crontab) But: /usr/sbin/cron[11622]: (thomas) CMD (/bin/date >> /tmp/aa) Freundliche Grüsse Thomas Steudten Senior Database Engineer Centralschweizerische Kraftwerke AG Postfach Telefon +41 41 249 55 64 Telefax +41 41 249 52 77 E-Mail [email protected] Internet http://www.ckw.ch -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Stefan Kuttler Gesendet: Donnerstag, 2. April 2009 03:15 An: This is the lpi-examdev mailing list. Cc: Paul Vixie Betreff: Re: [lpi-examdev] cron.deny cron.allow Hi Folks, the already mentioned section from the 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. Quote from Fedora/RH crontab man page ( crontab - maintain crontab files for individual users (ISC Cron V4.1)) > Hi Stefan, > > Thanks for the e-mail. On the list would be better, though. n.p. > Your last sentence is at odds with my ubuntu 8.04 desktop, though. > Neither file exists but I'm still able to create and use a crontab as a > regular user. I think that was the initial question concerning cron behaviour. I haven't had a look at the crontab sources but this would be a bad default. Refering to the last sentence, did you tried with a newly added unprivileged user? PS, I have set Paul on cc ;) Cheers Stefan -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
