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

Re: how do I set 'home' for root

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 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:


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


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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

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