Package: cron
Version: 3.0pl1-99
Followup-For: Bug #391350

Since I upgraded cron this morning, I have the same problem using cron
than Jari Aalto :

[EMAIL PROTECTED]:~$ crontab -e
crontabs/leirn: Permission non accordée


Strace gave me more information, which are similar to Jari's one :
stat64("/var/spool/cron", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
chdir("/var/spool/cron")                = 0
stat64("crontabs", {st_mode=S_IFDIR|S_ISVTX|0730, st_size=4096, ...}) = 0

....

open("crontabs/leirn", O_RDONLY)        = -1 EACCES (Permission denied)

I confirm the file /var/spool/cron/crontabs/leirn does exist and has ths
right permission for user leirn to access it :

beast:/var/spool/cron/crontabs# ll
total 12K
-rw------- 1 leirn crontab 278 2006-01-30 13:14 leirn

crontab seems to be able to acces libnss and /etc/password :

open("/lib/tls/i686/cmov/libnss_files.so.2", O_RDONLY) = 3

open("/etc/passwd", O_RDONLY)           = 3


I hope this will help.


Laurent Vromman


Answers to Javier Fernández-Sanguino Peña questions :

beast:/var/spool/cron/crontabs# ls -lR /var/spool/cron/
/var/spool/cron/:
total 12K
drwxrwx--T 2 daemon daemon  4,0K 2005-09-12 20:19 atjobs
drwxrwx--T 2 daemon daemon  4,0K 2002-01-18 09:13 atspool
drwx-wx--T 2 root   crontab 4,0K 2006-11-03 19:07 crontabs

/var/spool/cron/atjobs:
total 0

/var/spool/cron/atspool:
total 0

/var/spool/cron/crontabs:
total 12K
-rw------- 1 anais crontab 276 2006-01-30 13:13 anais
-rw------- 1 leirn crontab 278 2006-01-30 13:14 leirn
-rw------- 1 root  crontab 202 2005-01-31 11:16 root


beast:/var/spool/cron/crontabs# ls -la `which crontab`
-rwxr-xr-x 1 root root 26K 2006-10-12 20:55 /usr/bin/crontab


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages cron depends on:
ii  adduser                      3.99        Add and remove users and groups
ii  debianutils                  2.17        Miscellaneous utilities specific t
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libpam0g                     0.79-3.2    Pluggable Authentication Modules l
ii  libselinux1                  1.32-2      SELinux shared libraries
ii  lsb-base                     3.1-15      Linux Standard Base 3.1 init scrip

Versions of packages cron recommends:
ii  postfix [mail-transport-agent 2.3.3-1    A high-performance mail transport 

-- no debconf information

Reply via email to