Re: How to do X in sudo?
Re: How to do X in sudo?
- Subject: Re: How to do X in sudo?
- From: Brandon Allbery <email@hidden>
- Date: Thu, 28 Aug 2008 18:22:53 -0400
On 2008 Aug 28, at 11:53, Itai Seggev wrote:
On Thu, Aug 28, 2008 at 08:19:17AM -0400, James Rome wrote:
sudo nedit file.txt did work. But I much prefer to do sudo su and
run in
the root window for administration. Why does that not work?
By default, su discards the environment. This means, in particular,
that the
xauthority can longer before, preventing access. Adding -p ("preserve
environment") should fix this:
sudo su -p
Alternately, sudo -s.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] email@hidden
system administrator [openafs,heimdal,too many hats] email@hidden
electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden