Gentoo Archives: gentoo-catalyst

From: Chris Gianelloni <wolf31o2@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] Sudo Issues
Date: Fri, 23 Sep 2005 18:25:44
Message-Id: 1127499828.24269.168.camel@cgianelloni.nuvox.net
In Reply to: Re: [gentoo-catalyst] Sudo Issues by Andrew Gaffney
1 On Fri, 2005-09-23 at 13:08 -0500, Andrew Gaffney wrote:
2 > This one I'm familiar with. The current default configuration of sudo purposely
3 > wipes out the existing environment before switching to root. You can disable
4 > this behavior by commenting out the "Defaults env_reset" line in /etc/sudoers.
5 > The following command in your fsscript should take care of that:
6 >
7 > sed -e 's:^\(Defaults.\+env_reset\)$:# The following line is completely fscking
8 > stupid\n# \1:' /etc/sudoers
9
10 See, I prefer this one:
11
12 sed -i -e '/#Defaults:%wheel/ s/#//' /etc/sudoers
13
14 > Alternatively, 'export DISPLAY=:0.0' after sudo'ing and before running the app
15 > will "solve" the problem.
16
17 Try using: sudo env DISPLAY=:0.0 $programname
18
19 (by the way, this is what the installer CD does to start gli)
20
21 --
22 Chris Gianelloni
23 Release Engineering - Strategic Lead
24 Games - Developer
25 Gentoo Linux

Attachments

File name MIME type
signature.asc application/pgp-signature