Frugalware

Please read the http://frugalware.org/docs/bugs page if you are new to bugreporting!
Tasklist

FS#2879 - at command fails

Attached to Project: Frugalware
Opened by CSÉCSY László (Boobaa) - Tuesday, 18 March 2008, 16:58 GMT+2
Task Type Bug Report
Category Applications
Status New
Assigned To Miklos Vajna (vmiklos)
Operating System i686
Severity Medium
Priority Normal
Reported Version -current
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

$ at now + 14 hours -f ./start
warning: commands will be executed using /bin/sh
Cannot create atjob file /var/spool/atjobs/a000010132a759: Permission denied
$ ls -ld atjobs
drwx------ 2 daemon daemon 1024 2006 jan 12 atjobs
$
This task depends upon

Comment by Miklos Vajna (vmiklos) - Tuesday, 18 March 2008, 17:50 GMT+2
the strange fact is that at is setuid and setgit, so once you're in the daemon group, you should be able to add tasks, but:

1) the permissisons in /var did not change since 0.7

2) even if i add myself to the daemon group, i still get the same error.

hmm
Comment by crazy (bugs) - Tuesday, 01 April 2008, 04:27 GMT+2
vmiklos at package is missing /etc/at.allow file. So far I see only root is allowed by default but looking at the code in at.c it seems like it has a small bug in setting up the permission too. ( however the patch is untested )

Comment by Miklos Vajna (vmiklos) - Saturday, 05 April 2008, 19:01 GMT+2
hm.

$ echo foo |at now
warning: commands will be executed using /bin/sh
Cannot create atjob file /var/spool/atjobs/a0000501330fb8: Permission denied

after:

$ echo foo |at now
warning: commands will be executed using /bin/sh
Cannot give away file: Operation not permitted

i don't think such an error message could be caused by a missing file :s
Comment by crazy (bugs) - Saturday, 05 April 2008, 20:30 GMT+2
ok so the patch seems to be fine.

Cannot give away file: Operation not permitted < that indicates wrong permission on some files/folders

Loading...