Mailinglist Archive: opensuse-bugs (5295 mails)

< Previous Next >
[Bug 849720] New: "at" command immediately exit with: Cannot create atjob file /var/spool/atjobs/...: Permission denied
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sat, 9 Nov 2013 12:36:31 +0000
  • Message-id: <bug-849720-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=849720

https://bugzilla.novell.com/show_bug.cgi?id=849720#c0


Summary: "at" command immediately exit with: Cannot create
atjob file /var/spool/atjobs/...: Permission denied
Classification: openSUSE
Product: openSUSE 13.1
Version: Final
Platform: i586
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: siftspam-dev@xxxxxxxxxxx
QAContact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---


Created an attachment (id=566771)
--> (http://bugzilla.novell.com/attachment.cgi?id=566771)
Excerpt of strace output showing open() system call failure

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101
Firefox/25.0

Installed at-3.1.13-5.1.2.i586 rpm. Added user 'guest' to /etc/at.deny. Tried
to execute an "at" command but it immediately exited with error "Cannot create
atjob file /var/spool/atjobs/a0000a015ff720: Permission denied". Ran the
command again using strace:

sudo strace -u myuser -o /tmp/x.log /usr/bin/at 0000

The tail of the strace output shows that an open system call is failing with
EACCES:
open("/var/spool/atjobs/a0000a015ff720", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC,
0400) = -1 EACCES (Permission denied)


Related file permissions and /etc/at.deny contents:
#sudo ls -ld /usr/bin/at /var/spool/atjobs/
-rwsr-xr-x 1 root trusted 51156 Sep 27 17:22 /usr/bin/at
drwx------ 2 at at 4096 Nov 8 19:40 /var/spool/atjobs/

#sudo ls -l /etc/at.{allow,deny}
ls: cannot access /etc/at.allow: No such file or directory
-rw-r----- 1 root root 68 Nov 8 21:00 /etc/at.deny

#sudo cat /etc/at.{allow,deny}
cat: /etc/at.allow: No such file or directory
root
bin
daemon
lp
mail
news
uucp
games
man
wwwrun
ftp
nobody
guest

Reproducible: Always

Steps to Reproduce:
Execute the "at" command.
E.g.:
at 0000
Actual Results:
warning: commands will be executed using /bin/sh
Cannot create atjob file /var/spool/atjobs/a0000a015ff720: Permission denied

Expected Results:
Accept commands for the job from standard input and schedule them for
execution.

Installed RC2 from 32-bit Live DVD. Updates installed from default repo's using
Apper and Yast.

Also posted for forum:
https://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/491654-opensuse-13-1-rc2-release-candidate-2-post-observations-here-16.html#post2596663

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >