Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165704 - Recent updates were breaking x11-misc/sux
Summary: Recent updates were breaking x11-misc/sux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 00:25 UTC by rainer
Modified: 2008-02-24 14:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2007-02-07 00:25:06 UTC
gnomesu and sux no longer work after portage updates within the last month.
gnomesu just hangs when any command requiring an X window is run. sux in a terminal works to switch to the root user, but it is not possible to start an X window from the root user account, and the follwoing warning is displayed when starting for instance nautilus: 

(nautilus:32503): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

The problem seems not connected with the setup of permissions to use the X display, I have also tried xhost +localhost before switching to the root user.

The error behavior with "sux" is exactly the same what I am obtaining when logging in as root user from a console with "su". I am not sure if this beahvior with "su" is expected. Anyway, everything seems to work ok when using "su -" instead. Note that the bug report is about "sux" and "gnomesu" which used to work correctly just one month ago. 

An error with gnomesu exists in the stable version 0.3.1 as well as in the testing version 0.3.1-r2. However, previously I have been working successfully with the testing version only. The error behavior is quite different between the two versions: The stable version hangs with the gnomesu window displayed, while for the testing version the gnomesu window vanishes as expected, but creates at stalled process.

Reproducible: Always

Steps to Reproduce:
1.Up-to-date Gentoo with emerge -uDN world
2.gnomesu from the menu, sux from a terminal
3.try to start with root permissions any program that requires a X window

Actual Results:  
gnomesu window hangs.

sux produces a warning, nothing else happens.

(nautilus:32565): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.



Expected Results:  
X window with the desired application opening

 # emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System release 1.12.8
Last Sync: Tue, 06 Feb 2007 20:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.supp.name/ http://gentoo.prz.rzeszow.pl http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi aim alsa alsa_cards_hda-intel alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache apache2 apm arts audiofile bash-completion bcmath berkdb bidi bitmap-fonts blas bluetooth bzip2 cdparanoia cdr cli cracklib crypt cups curl curlwrappers dga dio directfb dlloader doc dri dts dvb dvd dvdr dvdread eds elibc_glibc emacs emacs-w3 emboss emul-linux-x86 encode esd ethereal evo examples exif fastcgi fbcon ffmpeg fftw flac foomaticdb fortran ftp ggi gif ginac glut gnome gnutls gphoto2 gpm gstreamer gtk gtk2 hal iconv icq idn ieee1394 imagemagick imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript jikes jpeg jpeg2k kde kdeenablefinal kernel_linux lapack lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms ldap leim libedit libwww lirc lirc_devices_imon lm_sensors lzw lzw-tiff mad madwifi matroska midi mikmod mime mng mnogosearch mono mp3 mpeg mpi msn mule mysql mysqli nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis ole openal opengl osc oscar oss pam pcre pdf perl php plotutils png pppd python qt3 qt4 quicktime radius readline reflection samba scanner sdl seamonkey session sockets socks5 spell spl ssl symlink szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l vcd vhosts video_cards_fbdev video_cards_nvidia video_cards_vesa vorbis wifi wxwindows xface xine xml xmlrpc xorg xosd xpm xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 rainer 2007-02-07 00:39:55 UTC
Gnome
======

When switching to the root user with sux, the described warning appears in Gnome after trying to start an application from the command line, but the desired application is then not starting up. 

KDE
====

For KDE, there is no warning at all, but the application is not starting up either.
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-02-07 15:46:18 UTC
gnomesu is depricated in favor of gksu.  Can you try that, instead?  Keep in mind, if you're using the sudo varients, they probably honor /etc/sudoers, which now nukes your entire environment by default.  You may have to modify that to not do that.

Adding sux maintainer.
Comment 3 rainer 2007-02-07 22:34:52 UTC
Some more findings:

1) gksu has the same problem (in the terminal, the same type of error message is displayed, the gksu window hangs after pressing ok)

2) From a Google search, it seems that users of some other distributions, e.g. Ubuntu encounter the same problem, cf. (sorry, in German) http://forum.ubuntuusers.de/topic/70904/

3) I have checked xauth and this seems to be fine when changing to super-user with sux. In fact, "xauth list" returns a valid "MIT-MAGIC-COOKIE" that is also available to the original user. However, there are is a new /root/.xauthXXXXXX file generated every time sux is called, whereby XXXXXX seem to be some pseudo-random characters and numbers. These files are not deleted, which is probably a side-effect of the problem.

SUMMARY:
========
gnomesu, sux, gksu   do not work any more for starting X window applications as a super-user.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-24 14:57:58 UTC
This bug is dead old and sux and gksu/gksudo works perfectly here. If it's still not the case for you please reopen.