help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running emacs as root


From: Ted Weatherly
Subject: Running emacs as root
Date: 7 Jan 2004 10:45:18 -0800

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]