From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HYVcb-0003hl-4r for garchives@archives.gentoo.org; Mon, 02 Apr 2007 23:07:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l32N6KZG019823; Mon, 2 Apr 2007 23:06:20 GMT Received: from customer-domains.icp-qv1-irony15.iinet.net.au (customer-domains.icp-qv1-irony15.iinet.net.au [203.59.1.175]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l32MxfDX011354 for ; Mon, 2 Apr 2007 22:59:43 GMT Received: from 124-168-99-133.dyn.iinet.net.au (HELO moriah.localdomain) ([124.168.99.133]) by iinet-mail.icp-qv1-irony15.iinet.net.au with ESMTP; 03 Apr 2007 06:59:39 +0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAAkoEUZ8qGOFdGdsb2JhbACQCQE X-IronPort-AV: i="4.14,362,1170604800"; d="scan'208"; a="113437398:sNHT414591480" Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 0BF4F921415 for ; Tue, 3 Apr 2007 06:59:43 +0800 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l7vDrfswQokU for ; Tue, 3 Apr 2007 06:59:40 +0800 (WST) Received: from [192.168.44.7] (bunyip [192.168.44.7]) by moriah.localdomain (Postfix) with ESMTP id AE6DA921413 for ; Tue, 3 Apr 2007 06:59:40 +0800 (WST) Subject: Re: [gentoo-user] fcron From: "W.Kenworthy" To: gentoo-user@lists.gentoo.org In-Reply-To: <200704021720.33289.alan@linuxholdings.co.za> References: <1175522971.17940.9.camel@bunyip.localdomain> <200704021649.32354.alan@linuxholdings.co.za> <200704021728.25304.shrdlu@unlimitedmail.org> <200704021720.33289.alan@linuxholdings.co.za> Content-Type: text/plain Date: Tue, 03 Apr 2007 06:59:35 +0800 Message-Id: <1175554775.17606.5.camel@bunyip.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 9c7fd220-054c-4690-a0ee-2025a8254c49 X-Archives-Hash: 393e49ce7230ce50c720bdccdabcf9e7 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 -- gentoo-user@gentoo.org mailing list