Re: how do I set 'home' for root

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

 



On Wednesday April 27 2005 4:10 pm, Rick Stevens wrote:
> Claude Jones wrote:
> > So root is lost - can someone help me tell it how to 'phone home'? I was
> > wondering why I was getting the strange 'sh-3.00#' prompt in the third
> > line where I used to get 'root@viewridgeproductions2 ]$'  I think lines 4
> > and 5 are my clue, but I don't how to fix this, or for that matter, how
> > it got into this state.
>
> "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#

I'm getting the same bad result, if I follow you right.
-- 
Claude Jones
Bluemont, VA, USA


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux