Bug 602235 - emacs under root using the wrong config file
emacs under root using the wrong config file
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: emacs (Show other bugs)
13
All Linux
low Severity medium
: ---
: ---
Assigned To: Karel Klíč
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-09 08:58 EDT by Ales Kozumplik
Modified: 2014-09-30 19:39 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-09 09:44:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ales Kozumplik 2010-06-09 08:58:00 EDT
1) gnome terminal is running
2) I do su, enter password, become root
3) $ emacs something
4) I get:

Warning (initialization): An error occurred while loading `/home/akozumpl/.emacs':

The point is, I am root, $HOME is /root etc. so no matter what emacs thinks I am, the config should be loaded from /root/.emacs. the non-root config file can reference $HOME so if this is an intended feature it doesn't work anyway.
Comment 1 Jonathan Underwood 2010-06-09 09:44:03 EDT
su with out the -l starts a non login shell, and so root's startup files are not read. So this is working as designed - you need to use su -l.

Note You need to log in before you can comment on or make changes to this bug.