LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   newb problem (https://www.linuxquestions.org/questions/linux-general-1/newb-problem-103815/)

rcflyer23 10-14-2003 11:04 AM

newb problem
 
Okay so I am new to this whole thing and trying to learn. When is SSH to my box I am getting the following at the prompt

Could not chdir to home directory /root: Not a directory

-bash: /root/.bash_profile: Not a directory


I don't know what caused it. Is there a way to chmod it so it sees it as a directory instead of a file. It is still there just as a file instead of a directory. Anyhelp would be appreciated.

RC

trickykid 10-14-2003 11:16 AM

Are you logging in as root or a user? Apparently its not finding a home directory for the user your logging in as and trying to login to /root as a fallback per se...

If you are trying to login as root, bad security practice/technique and should be avoided.

rcflyer23 10-14-2003 11:44 AM

I believe that I did login as root. I usually don't because of that reason. I just don't know what happened to cause that directory to actually become a File or how to fix it back.

RC

trickykid 10-14-2003 12:07 PM

Check and make sure the entry for root in your /etc/passwd file isn't trying to use /root/.bash_profile as the home directory as root then..


All times are GMT -5. The time now is 07:39 PM.