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#c7


Michal Vyskocil <mvyskocil@xxxxxxxx> changed:

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

--- Comment #7 from Michal Vyskocil <mvyskocil@xxxxxxxx> 2013-11-12 13:02:02
UTC ---
(In reply to comment #5)
$ atrm 1
DEBUG: uid:25, euid:10112, gid:100, egid:25
Cannot unlink a000010160092c: Permission denied

This is weird, there is

case ATRM:

REDUCE_PRIV(daemon_uid, daemon_gid)

whis does
setreuid(10112, 0)
setregid(100, 42)
setregid(25, 100)
setreuid(25, 10112)

and with all *id munging afterward, we can't remove at job.

In Debian this does work because they do have /usr/bin/at and
/var/spool/cron/atjobs daemon:daemon, where SUSE's setup is very different. So
it is obvious the code does expect very specific setup of at and jobs dir.

The point is what to do know - to clone Debian's setup or to use an another
way?

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