Re: crontab under user not working



You should check if the suid bit is set for /usr/bin/crontab and it is owned
by root. If so, crontab -e should have no difficulties accessing
directories.

"houghi" <houghi@xxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:slrnfuivt5.6ig.houghi@xxxxxxxxxxxxxxx
I had a HD problem. When I wanted to do a crontab -e, I got the
following. Any ideas?

/var/spool]
houghi@penne : crontab -e
cannot chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denied
[/var/spool]
houghi@penne : l
total 56
drwxr-xr-x 14 root root 4096 2007-12-16 15:37 ./
drwxr-xr-x 13 root root 4096 2007-10-06 10:35 ../
drwx------ 2 vscan root 4096 2008-02-13 15:33 amavis/
drwx------ 2 at at 4096 2007-10-06 10:47 atjobs/
drwx------ 2 at at 4096 2007-09-22 01:43 atspool/
drwxrwx--- 2 mail mail 4096 2007-09-22 00:04 clientmqueue/
drwx------ 4 root root 4096 2007-10-06 10:47 cron/

Sure I could chmod a lot, but would that be good? What is the standard?

houghi
--
The whole principle [of censorship] is wrong. It's like demanding that
grown men live on skim milk because the baby can't have steak.
-- Robert A. Heinlein in "The Man Who Sold the Moon"


.



Relevant Pages

  • RE: redhat-list digest, Vol 1 #8436 - 23 msgs
    ... i am unable to crontab -l or crontab -e as user root. ... usb memory key ... iTunes inside of VMWare inside of Windows ... When you plug the memory stick in, log in as root and use 'fdisk -l /dev/sda' to look at the partition table. ...
    (RedHat)
  • [Fwd: OpenBase SQL multiple vulnerabilities Part Deux]
    ... # Writing to roots crontab seems to be fairly prompt at handing out root shells ... This ensures that cron is running when the fake root crontab is created. ... the OpenBase family of products have been enabling some of the most innovative business applications ...
    (Bugtraq)
  • Re: Cron job question
    ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)
  • Re: error email from Cron
    ... >>Well, I've found the problem, but still don't know how to fix it. ... > No, you run cron, not crontab. ... and once as root. ... >>Below is an excerpt from the cron log. ...
    (linux.redhat.misc)
  • Re[2]: Cron job question
    ... MS> extra column defining which user ID the command should be run as. ... MS> crontab file, which is managed using the crontabcommand. ... MS> any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)