[clue-tech] su problem

Jim Ockers ockers at ockers.net
Fri Jan 14 15:35:08 MST 2005


Hi Mike,

> Anybody seen this before?
> 
> [root at mail mail]# su hfrost
> su: /bin/bash  : No such file or directory

Weird.

Please try this:

su - hfrost

or this

su - hfrost -s /bin/bash

or this

su - hfrost -s /bin/tcsh

Please let us know if any of those allow you to su to hfrost.  If
the 2nd or 3rd work but not the 1st, then maybe there is a non
printable character in the shell GECOS field in the passwd file
which /bin/login cannot execute since /bin/bash[nonprintablecharacter]
does not exist.

You could try "chsh -s /bin/bash hfrost" to reset the shell and
hopefully get rid of the nonprintable character.

If someone opened /etc/passwd in NOTEPAD.EXE or some DOS editor
and saved the file, then somehow it got transferred in binary mode
to the Linux box, the ^M (CR) character might be on the end of
the line.

Hope this helps,
Jim

-- 
Jim Ockers, P.Eng. (ockers at ockers.net)
Contact info: please see http://www.ockers.net/



More information about the clue-tech mailing list