Package: cron
Version: 3.0pl1-97
Severity: normal

When querying the current crontab:

  $ crontab -l

The message reads:

  crontabs/jaalto: Permission denied

Running strace gives:

stat64("/var/spool/cron", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0
chdir("/var/spool/cron")                = 0
...
stat64("crontabs", {st_mode=S_IFDIR|S_ISVTX|0730, st_size=96, ...}) = 0
open("/etc/cron.allow", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/etc/cron.deny", O_RDONLY)        = -1 ENOENT (No such file or directory)
...
open("crontabs/jaalto", O_RDONLY)       = -1 EACCES (Permission denied)

SUGGESTION

Please improve error checking and messages. There are two problems in the
current message:

1) It suggests that the system has some file permission or owner -related
   permission issue
2) The path name to item in question is not shown in full.

The more informative error message in this case would have been:

  No crontab entry found: /var/spool/cron/crontabs/jaalto

That would have made it obvious that there is nothing to list with
"crontab -l"

Please differentiate permission problems from missing files.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages cron depends on:
ii  adduser                      3.97        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.30.28-2   SELinux shared libraries
ii  lsb-base                     3.1-15      Linux Standard Base 3.1 init scrip

Versions of packages cron recommends:
ii  exim4-daemon-heavy [mail-tran 4.63-3     exim MTA (v4) daemon with extended

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to