GNOME Bugzilla – Bug 84505
need doc note about building with correct permissions
Last modified: 2005-01-05 14:21:12 UTC
gnome-terminal doesn't update the utmp/wtmp records anymore. This was working fine before. And I've got the option enabled (: Maybe this is even a libzvt issue. I tried to look at the code, but I'm not really sure.
Bug 82904/82905; marking dup of 82904. *** This bug has been marked as a duplicate of 82904 ***
This bug is not a duplicate of 82904. 82904 is about adding --wtmp and --nowtmp. This bug is about the utmp/wtmp code not working at the moment (which it did before). Reopening.
Doh.
It is gnome-pty-helper that updates the utmp/wtmp records for gnome-terminal if the option is enabled. Since root permissions are needed to update utmp/wtmp files, gnome-pty-helper is installed as a SUID program in the sbin directory. The most likely reason for this problem could be just this - that gnome-pty-helper is not installed as root or the 's' bit isnt set. I just checked on my linux box. utmp/wtmp updation seems to be working fine.
Kristian?
Hmm, so this started happening when I changed the way I build gnome2. I don't make install as root, so that's why the permissions are messed up here, as Hema pointed out. This won't happen with packages, but maybe it's nice to add a warning somewhere?
IMHO, since this problem is not likely to occur with packages, it may not be worth patching any component-code for this bug. And not clear about the kind of warning that could be given and by who. gnome-pty-helper simply HAS to have root perms ( be SUID ) to update utmp/wtmp records. Because, if gnome-pty-helper is not installed as suid, despite being designed to be so, then that seems like an installation error to me and not a run-time error deserving user-warnings.
I think it wouldn't harm to put a notice in the README of libzvt and/or gnome-terminal saying that gnome-pty-helper needs root permissions. About the warning, I was thinking of a warning during make install, if make install is not being run as root. But not everybody may notice that, especially not when building using build scripts.
Re-triaging in light of the data. :)
Docs should probably be in vte/libzvt; bounce bug to vte, then libzvt
Note added to gnome-pty-helper/README in vte, not sure where else it belongs.
Bouncing to libzvt.
Closing.