LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-14-2003, 11:04 AM   #1
rcflyer23
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
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
 
Old 10-14-2003, 11:16 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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.
 
Old 10-14-2003, 11:44 AM   #3
rcflyer23
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 10-14-2003, 12:07 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 05:05 PM
Newb problem:OpenAfs ebh1 Linux - Software 0 09-24-2003 10:30 AM
Newb Ethernet problem. Please Help. lumpfish Linux - Networking 2 08-02-2003 08:14 PM
Another newb, another problem... Fishbu Slackware 5 03-08-2003 09:56 PM
MySQL problem - newb omgkthxbye Linux - Newbie 2 11-26-2002 04:42 PM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration