Bug #1693
closedtmpfs/screen permission issue
0%
Description
Launching misc/screen(1) with tmpfs mounted on /tmp fails with a permission
error:
$ id
uid=1000(ftigeot) gid=20(staff) groups=20(staff), 0(wheel)
$ screen
You are not the owner of /tmp/screens/S-ftigeot.
$ ls lad /tmp/screens/S-ftigeot 2 root wheel 0B Mar 13 12:45 /tmp/screens/S-ftigeot
drwx-----
The owner of /tmp/screens/S-ftigeot is incorrectly set to root.
With /tmp on a Hammer or UFS file system, /tmp/screens/S-$user ownership is set
to the user which launched screen(1) and its default group:
$ ls lad /tmp/screens/S-ftigeot 1 ftigeot staff 0B Mar 13 12:52 /tmp/screens/S-ftigeot
drwx-----
This issue appeared on a system running DragonFly v2.5.1.945.ge3c80b-DEVELOPMENT
from March 12.
Updated by pavalos over 14 years ago
Confirmed. It looks like chown() is failing for setuid programs.
Updated by dillon over 14 years ago
I replaced tmpfs's chown permissions check code and that seems to fix the problem.
-Matt