Running urxvt with the +ut flag to have it update utmp does not work. The TTY does not show up in the output of "w" or "who". Running "who am i" shows nothing. Reproducible: Always Steps to Reproduce: 1. emerge rxvt-unicode 2. run urxvt +ut 3. from the new urxvt window, run who am i Actual Results: The output of "who am i" is nothing, showing that the TTY is not in utmp. Expected Results: The "who am i" command should show the TTY of the new urxvt window. Output from emerge info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11.5 i686) ================================================================= System uname: 2.6.11.5 i686 Intel(R) Xeon(TM) CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 22:33:55)] dev-lang/python: 2.2.3-r5, 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/local/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="en_US.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo cdr crypt cscope cups curl emboss encode esd fam flac foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib ipv6 jack java joystick jpeg junit kde libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline real ruby ruby18 samba scanner sdl slang speex spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode xml xml2 xmms xprint xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS /var/run/utmp, as created by /etc/init.d/bootmisc (baselayout-1.9.4-r6) has permissions 0664, is owned by root, and is in the group utmp. My suggestion is to alter the ebuild so that urxvt and urxvtd are setgid and belong to group utmp, similar to what is done for screen. I did this manually, and it seems to work fine.
Created attachment 61325 [details, diff] Fixed ebuild
(In reply to comment #1) > Created an attachment (id=61325) [edit] > Fixed ebuild > Don't know if this is the best solution, but it works
This is probably the only "real" solution, but I *really* don't want another suid root or setgid utmp file by default for us. Would a big informative output at the end of the emerge process with how to make utmp support work be sufficient?
I'm not going to argue the "right" way to do it, since that is up to the maintainer (and ultimately the sysadmin of the system in question). Of course, I'd prefer that it work automatically, but a message would be great, seeing how much you're against the automatic permissioning. While I'm on the soapbox though, these messages get lost easily when doing a big update (as in emerge world). It's not so easy -- at least for me -- to wade through all the output of the compiles to find the emerge messages. A way to view all the messages at the end of an emerge would be nice. Better yet, it would be great if these post-build permission changes could be made "permanent," similarly to how /etc/portage/package.use makes use flags "permanent."
Works fine here w/ 7.7-r2 $ whoami jakub $ w 13:23:46 up 22:41, 1 user, load average: 1.69, 1.41, 0.97 USER TTY LOGIN@ IDLE JCPU PCPU WHAT jakub pts/3 13:23 10.00s 0.64s 0.37s urxvt +ut Please, give it a try.
*** Bug 334349 has been marked as a duplicate of this bug. ***