Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   crontab permissions problem on /var/spool/cron/crontabs/* (http://www.linux-archive.org/debian-user/314266-crontab-permissions-problem-var-spool-cron-crontabs.html)

Anthony Campbell 01-24-2010 12:00 PM

crontab permissions problem on /var/spool/cron/crontabs/*
 
I get an error when running crontab as user:

/var/spool/cron/crontabs/ac: Permission denied

Googling shows a few people with a similar problem but either no
solution or one that doesn't work here (crontab not having setguid or
not in the crontab group).

The permissions are:

drwx-wx--T 2 root root 4096 Jan 24 10:24 /var/spool/cron/crontabs/
-rwxr-sr-x 1 root crontab 27724 May 13 2009 /usr/bin/crontab*
-rw------- 1 ac crontab 919 Dec 2 10:04 /var/spool/cron/crontabs/ac

These are the same as I get on other computers where crontab works
correctly. I had the nasty thought that my system might have been
compromised but I have no other evidence for that. Chkrootkit doesn't
show anything.

Only possible clue: /var/spoo/cron/crontabs/ac has this:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.xScslJ/crontab installed on Wed Dec 2 10:04:38 2009)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)


I don't have any such file in /tmp.

Any clues, please?

Anthony

--
Anthony Campbell - ac@acampbell.org.uk
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk - sample my ebooks at
http://www.smashwords.com/profile/view/acampbell


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Wayne 01-24-2010 03:35 PM

crontab permissions problem on /var/spool/cron/crontabs/*
 
Anthony Campbell wrote:

I get an error when running crontab as user:

/var/spool/cron/crontabs/ac: Permission denied

Googling shows a few people with a similar problem but either no
solution or one that doesn't work here (crontab not having setguid or
not in the crontab group).

The permissions are:

drwx-wx--T 2 root root 4096 Jan 24 10:24 /var/spool/cron/crontabs/
-rwxr-sr-x 1 root crontab 27724 May 13 2009 /usr/bin/crontab*
-rw------- 1 ac crontab 919 Dec 2 10:04 /var/spool/cron/crontabs/ac

These are the same as I get on other computers where crontab works
correctly. I had the nasty thought that my system might have been
compromised but I have no other evidence for that. Chkrootkit doesn't
show anything.

Only possible clue: /var/spoo/cron/crontabs/ac has this:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.xScslJ/crontab installed on Wed Dec 2 10:04:38 2009)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)


I don't have any such file in /tmp.



Have you tried, as user, 'crontab -e' to edit that users cron entries?

Wayne


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

"Todd A. Jacobs" 01-24-2010 05:32 PM

crontab permissions problem on /var/spool/cron/crontabs/*
 
On Sun, Jan 24, 2010 at 01:00:13PM +0000, Anthony Campbell wrote:

> /var/spool/cron/crontabs/ac: Permission denied

The crontabs directory should be owned by root:crontab, not root:root.

> I don't have any such file in /tmp.

Nor should you. /usr/bin/crontab works like sudoedit, and uses temp
files rather than editing a crontab in-place. That's what the message is
telling you: the name of the last temp file used to edit the crontab.

--
"Oh, look: rocks!"
-- Doctor Who, "Destiny of the Daleks"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 10:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.