Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't log

Status
Not open for further replies.

lemme2004

IS-IT--Management
Sep 7, 2005
16
Hi,

I got a strange problem with my FC 8.
I can't log when trying using ssh or console, but when I log with squirrelmail or outlook it work fine.

The problem I think that the problem is /bin/bash, because when I log in the console Level 5, I got a message can't execute /bin/bash no such file or directory.

I checked The permission for /bin : 755 (good).
I thought it was an attack, I check new users in my /etc/passwd : no new users (good).

I used the rescue CD and copy a new bash file, the sale problem.

I used fsck.ext3 /dev/hda1 (my /), no problem.

Any got an idea.
 
What is the output of ls -l /a/bin/bash when you boot from the rescue CD, presuming your root partition is mounted on /a? Does it work if you chroot /a /bin/bash when booted from the rescue CD?

Annihilannic.
 
Hi every body,

The problem was in the /etc/passwd file, an employee edit this file with Notepad (WINDOWS) and leaves ~M character at the end of each line.
when I used Cat /etc/passwd, it was not printed on screen, but when using VI I saw the character.

Thanks for all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top