how do I set 'home' for root
Bogdan Rotariu
bogdan at alterox.ro
Wed Apr 27 20:31:37 UTC 2005
Alexander Dalloz wrote:
> 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:
hehe, Alexander, one error for today :)
check /etc/passwd
>
> root:x:0:0:root:/root:/bin/bash
>
> Check too your /root/.bash_profile and /root/.bashrc files.
>
> Alexander
>
>
>
..........................................................................
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
fordelivery of the message to such person), you may not copy or deliver
this message to anyone. In such a case, you should destroy this message
and kindly notify the sender by reply e-mail.
More information about the users
mailing list