all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.