Mailinglist Archive: opensuse-bugs (5295 mails)

< Previous Next >
[Bug 849720] "at" command immediately exit with: Cannot create atjob file /var/spool/atjobs/...: Permission denied

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

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


Michal Vyskocil <mvyskocil@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEEDINFO
InfoProvider| |krahmer@xxxxxxxx

--- Comment #3 from Michal Vyskocil <mvyskocil@xxxxxxxx> 2013-11-11 15:17:52
UTC ---
(In reply to comment #2)
However then their logic is still weird, as then there
dont need to be PRIV_START/PRIV_END.

I do see only one reason - to create files with the same user id, which belongs
to caller of at command. However I've changed permissions such way and have
added a debug patch listing uid/euid/gid/egid. But it did not work as I've
expected

# ls -lh /usr/bin/at
-rwsr-sr-x 1 root trusted 52K Nov 11 15:39 /usr/bin/at
# ls -ld /var/spool/atjobs/
drw-rw---- 1 at trusted 8 Nov 11 15:40 /var/spool/atjobs/
# getent group | grep trusted
trusted:x:42:
$ at 0000
warning: commands will be executed using /bin/sh
DEBUG: uid:10112, euid:10112, gid:100, egid:42
Cannot create atjob file /var/spool/atjobs/a00004016005e4: Permission denied

but process with egid trusted should be able to write to trusted group writable
directory, or have I overlooked something?

--
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 >
References