Package: at
Version: 3.1.13-2
Severity: important
Dear Maintainer,
'at' currently is not usable as a regular user contradicting the man
page. In the regular installation, only /etc/at.deny exists and thus
from the man page a user not listed in that file should be able to use
at (my user is not listed there). Currently, this does not work
however:
bash[2]$ atq
You do not have permission to use atq.
bash[2]$
I started debugging at and it turns out that 'at' cannot even read
/etc/at.deny and thus concludes that no user except root should be
allowed to use it (seen easily also in strace):
bash[2]$ strace -e open atq
open("/etc/ld.so.cache", O_RDONLY) = 4
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 4
open("/etc/nsswitch.conf", O_RDONLY) = 4
open("/etc/ld.so.cache", O_RDONLY) = 4
open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY) = 4
open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY) = 4
open("/etc/ld.so.cache", O_RDONLY) = 4
open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY) = 4
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY) = 4
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 4
open("/etc/group", O_RDONLY|O_CLOEXEC) = 4
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 4
open("/etc/at.allow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/at.deny", O_RDONLY) = -1 EACCES (Permission denied)
You do not have permission to use atq.
bash[2]$
The installed rights confirm this:
bash[2]$ ls -l /etc/at.deny
-rw-r-----. 1 root bin 144 Nov 30 2009 /etc/at.deny
bash[2]$
As a quick test, I added read rights for all other users, but also
with no success:
bash[2]$ sudo chmod o+r /etc/at.deny
bash[2]$ atq
Cannot change to /var/spool/cron/atjobs: Permission denied
bash[2]$
At this point I stop as I'm not sure how this is supposed to work in
the first place.
I would really appreciate if we can fix things up. Let me know if I
can test something.
Thanks
Detlev
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages at depends on:
ii libc6 2.13-37
ii libpam-runtime 1.1.3-7.1
ii libpam0g 1.1.3-7.1
ii lsb-base 4.1+Debian8
Versions of packages at recommends:
ii exim4-daemon-light [mail-transport-agent] 4.80-7
at suggests no packages.
-- Configuration Files:
/etc/at.deny [Errno 13] Permission denied: u'/etc/at.deny'
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]