Package: approx
Version: 2.8.0
Severity: normal

/etc/cron.weekly/approx exits prematurely with the following error when 
libpam-tmpdir is installed and setup.

"/tmp/user/0/approx982b38: Permission denied"

PROBLEMS

1) gc_approx is initially run as root and does setuid32 to user approx
2) strace indicates that it tries several times to access/write files 
in /tmp/user/0. Access to that directoy is denied because of 1)

SUGGESTION

- fixing bug 343105 probably caused this
- using 

su -s /bin/sh approx -c "/usr/sbin/gc_approx --quiet"

in /etc/cron.weekly/approx fixes the problem. The "-s /bin/sh" option is 
required because shell of user approx is /bin/false. If "su" is not used at 
all TMPDIR will not get set properly (which causes the problem in the first 
place). Another solution would be to set the proper TMPDIR as well after 
setuid32 call.

-- System Information:
Debian Release: etch
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.23.1
--
This report was not filed by reportbug and may therefore not be 100% compliant 
with the debian requirements - I am sorry for inconvenience.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to