Cant believe I am the only one who has this - 3 systems I have checked
so far are all the same - root cant access its crontab. Ive tried
rebuilding one without pam (fcron only), but no change.
bunyip ~ # esearch fcron
[ Results for search key : fcron ]
[ Applications found : 1 ]
* sys-process/fcron
Latest version available: 3.0.2-r1
Latest version installed: 3.0.2-r1
Size of downloaded files: [no/bad digest]
Homepage: http://fcron.free.fr/
Description: A command scheduler with extended capabilities over
cron and anacron
License: GPL-2
bunyip ~ # ls -al /var/spool/cron/
total 0
drwxr-x--- 5 root cron 176 Dec 10 00:01 .
drwxr-xr-x 9 root root 240 Jun 8 2006 ..
-rw-r--r-- 1 root root 0 Dec 10 00:01 .keep_sys-process_cronbase-0
drwxr-x--- 2 root cron 72 Feb 18 2005 crontabs
drwsrws--- 2 fcron fcron 200 Apr 3 06:46 fcrontabs
drwxr-x--- 2 root root 224 Apr 2 22:26 lastrun
bunyip ~ #
bunyip ~ # ls -al /var/spool/cron/fcrontabs/
total 16
drwsrws--- 2 fcron fcron 200 Apr 3 06:46 .
drwxr-x--- 5 root cron 176 Dec 10 00:01 ..
-rw-r--r-- 1 root fcron 0 Apr 3 06:46 .keep_sys-process_fcron-0
-rw------- 1 root root 1681 Apr 3 06:21 root
-rw-r----- 1 fcron fcron 1132 Feb 17 14:24 root.orig
-rw------- 1 root root 184 Apr 3 06:21 wdk
-rw-r----- 1 fcron fcron 173 Nov 22 14:14 wdk.orig
bunyip ~ #
On Mon, 2007-04-02 at 17:20 +0200, Alan McKinnon wrote:
> On Monday 02 April 2007, Etaoin Shrdlu wrote:
> > On Monday 2 April 2007 16:49, Alan McKinnon wrote:
> > > > moriah ~ # crontab -e
> > > > 22:05:13 Could not chdir to /var/spool/cron/fcrontabs: Permission
> > > > denied moriah ~ #
> > > >
> > > > BillK
> > >
> > > You HAVE to do that as root
> >
> > The # character in the prompt usually indicates a root shell...so I
> > guess the OP was already issuing those commands as root.
>
> doh! /me whacks self on head with a clue by 4 ....
>
> The OP has an interesting problem here, as root can cd into any
> directory even if all permissions are removed.
>
> Bill, a bit of a shot in the dark here, but what's the output
> from 'ls -al /var/spool/cron/'?
>
> And are you running a hardened profile using selinux?
>
> alan
>
> --
> Optimists say the glass is half full,
> Pessimists say the glass is half empty,
> Developers say wtf is the glass twice as big as it needs to be?
>
> Alan McKinnon
> alan at linuxholdings dot co dot za
> +27 82, double three seven, one nine three five
--
[email protected] mailing list