[clue-tech] su problem

Mike Staver staver at fimble.com
Fri Jan 14 15:46:31 MST 2005


Thanks for the info Jim, here's what happened:

[root at mail staver]# su - hfrost
su: /bin/bash  : No such file or directory
[root at mail staver]# su - hfrost - s /bin/bash
su: /bin/bash  : No such file or directory
[root at mail staver]# su - hfrost -s /bin/tcsh
[hfrost at mail ~]$

I'm clearly currently using bash as my shell, and so are many other 
people.  Maybe I will try to reinstall bash.

Jim Ockers wrote:
> 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
> 

-- 

                                 -Mike Staver
                                  staver at fimble.com
                                  mstaver at globaltaxnetwork.com



More information about the clue-tech mailing list