how do I set 'home' for root

Alexander Dalloz ad+lists at uni-x.org
Wed Apr 27 20:26:43 UTC 2005


Am Mi, den 27.04.2005 schrieb Claude Jones um 22:17:

> > "su" only changes the process' effective UID, but doesn't give you
> > root's environment.  "su -" DOES give you root's environment (including
> > root's path and, yes, $HOME).  It's equivalent to logging in as root.
> 
> Assuming I understood you correctly, I tried this:
> sh-3.00# su cj
> [cj at viewridgeproductions2 misc]$ su root
> Password:
> sh-3.00# kcontrol
> Aborting. $HOME is not set.
> sh-3.00#

No, Rick spoke about running "su - <user>".

> I'm getting the same bad result, if I follow you right.

> Claude Jones

Check /etc/password to contain following line for root:

root:x:0:0:root:/root:/bin/bash

Check too your /root/.bash_profile and /root/.bashrc files.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp 
Serendipity 22:24:11 up 15 days, 19:04, load average: 0.19, 0.14, 0.15 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050427/b73c103e/attachment-0001.sig>


More information about the fedora-list mailing list