unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Running emacs as root
@ 2004-01-07 18:45 Ted Weatherly
  2004-01-07 19:33 ` Henrik Enberg
  0 siblings, 1 reply; 5+ messages in thread
From: Ted Weatherly @ 2004-01-07 18:45 UTC (permalink / raw)


Hi,

To run emacs as root, I normally 'su' then 'emacs'.  I'd like to
create a script to simplify this.  I try:

sudo -u root /bin/sh -c "emacs"

...and I'm able to edit files as root.  But when I run a shell within
emacs, my prompt displays as if I'm a regular user (i.e. it shows as
"/tmp> " but I want "/tmp# ").  So it appears as if emacs is using the
.profile of the regular user.   How do I fix this?  Perhaps there is a
better way to launch emacs as root?

Thanks.
-Ted

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-11  1:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07 18:45 Running emacs as root Ted Weatherly
2004-01-07 19:33 ` Henrik Enberg
2004-01-08  3:54   ` Ted Weatherly
2004-01-08 23:36     ` Micha Feigin
2004-01-11  1:11     ` gebser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).