Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do X in sudo?



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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >How to do X in sudo? (From: James Rome <email@hidden>)
 >Re: How to do X in sudo? (From: Jeremy Huddleston <email@hidden>)
 >Re: How to do X in sudo? (From: Jeremy Huddleston <email@hidden>)
 >Re: How to do X in sudo? (From: Jeremy Huddleston <email@hidden>)
 >Re: How to do X in sudo? (From: James Rome <email@hidden>)
 >Re: How to do X in sudo? (From: Itai Seggev <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.