From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: starting emacs remote doesn't load .emacs
Date: Thu, 11 Oct 2007 15:35:00 +1000 [thread overview]
Message-ID: <87bqb6xlh7.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.1922.1192019338.18990.help-gnu-emacs@gnu.org
Stefan Horomnea <stefan@softexperience.ro> writes:
> Hello,
>
> Ok, I got it :)
>
> I logged as bob user and then su to root. Emacs wasn't looking for
> /root/.emacs but for /home/bob/.emacs
> i just linked: ln -s /root/.emacs /home/bob/.emacs
>
this is a bad slution on many levels.
1. Read the man page on su and look at the difference between su and su -
If you want things to be relative to the root user environment, you need
the -
2. It is a bad idea to run any program as root unless you absolutely have
to. there are many reasons for this, mainly relating to security and not
'shooting yourself in the foot'. If you think you have to run as root
all the time, then there is something you have misunderstood. Let us
know why you feel you need to run as root all the time and we can
probably explain things so that you won't need to. There are rare
occasions where it does make sense to run emacs as root, but these are
rare and without meaning to sound rude, given your unawareness of how su
and shell environments interact, I suspect you don't fall into one of
those rare situations.
3. If you are running emacs 22, you iwll have tramp installed. tramp will
allow you to easily edit files owned by root or execute commands as
root. Use this rather than running emacs as root.
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2007-10-11 5:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 11:14 starting emacs remote doesn't load .emacs Stefan Horomnea
2007-10-10 12:09 ` Stefan Horomnea
2007-10-10 18:05 ` Peter Dyballa
[not found] ` <mailman.1922.1192019338.18990.help-gnu-emacs@gnu.org>
2007-10-10 17:31 ` Stefan Monnier
2007-10-11 5:35 ` Tim X [this message]
2007-10-11 14:19 ` Joel J. Adamson
2007-10-12 2:43 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bqb6xlh7.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).