Subject: | $user->"su"->root ==> /tmp/par-$user owned by root |
As reported by Rumen Bogdanovski <rumen@skyarchive.org>.
photview is a link to photclient
rumen@bc2s:~$ su
Password:
root@bc2s:/home/rumen# rm /tmp/par-rumen/ -r
root@bc2s:/home/rumen# photclient
****
window appears
****
root@bc2s:/home/rumen# exit
exit
rumen@bc2s:~$ photview
Permission denied at ../blib/lib/PAR.pm line 845.
rumen@bc2s:~$ ls -l /tmp/
drwxr-xr-x 3 root root 4096 2006-10-24 23:08 par-rumen/
rumen@bc2s:~$
The point is that rumen->"su"->root creates /tmp/par-rumen with owner root.
In this case "rumen" can not execute any other PARs
I think it should create /tmp/par-root as rumen->"su -"->root does.