W.Kenworthy schreef: > After an update (possibly pam related) a couple of weeks ago, I can no > longer run so X apps under sudo (starting apps from a root logged in via > su in an xterm work fine). > > In particular, I have some scripts using gtkdialog (which run as root) > to ask "which network" for my laptop using a small gui before starting > the correct network. However, any attempt to open a dialog generates an > error "(gtkdialog:18408): Gtk-WARNING **: cannot open display:" xhost + > doesnt help so its probably another PAM problem - can someone recommend > where to look? > > BillK > >
I had the same problem, but it was *not* PAM-related (I don't use PAM). Found an answer on the forums (sorry, no link this time, maybe later)-- adding the following to sudoers (using visudo) worked for me: # Allow users in group users to export specific variables # Defaults:%users env_keep=TZ Defaults:%users env_keep=DISPLAY (the uncommented line is the additional line in question) Hope this helps, Holly -- gentoo-user@gentoo.org mailing list