Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xhost +local:root ???
Date: Sat, 16 Sep 2006 19:02:03
Message-Id: 20060916205501.98175ee7.hilse@web.de
In Reply to: Re: [gentoo-user] xhost +local:root ??? by Neil Bothwick
1 Hi,
2
3 On Sat, 16 Sep 2006 19:29:14 +0100
4 Neil Bothwick <neil@××××××××××.uk> wrote:
5
6 > emerge sux
7 >
8 > Use sux instead of su.
9
10 or, if using sudo, do the following:
11
12 append to /root/.bashrc:
13 ----snip
14 [[ -n "$SUDO_USER" ]] && [[ -n "$DISPLAY" ]] && export XAUTHORITY=/home/$SUDO_USER/.Xauthority
15 ----snip
16
17 to keep the DISPLAY environment variable set, /etc/sudoers should have
18 some line like this which tells it to not clean environment (in this
19 case for users in the wheel group, for which I allow passwordless
20 sudo'ing, too:
21 ----snip
22 Defaults:%wheel !env_reset
23 ----snip
24
25 -hwh
26 --
27 gentoo-user@g.o mailing list