[clue-tech] su problem

Jim Ockers ockers at ockers.net
Fri Jan 14 15:50:09 MST 2005


Hi Mike,

Mike Staver wrote:
> 
> 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
                                  ^^^

Try it with "su - hfrost -s /bin/bash"

You had a space between the - and the s in the line you tried.
I still think there could be a nonprintable character in the
shell field in /etc/passwd line for hfrost.

> 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.

Try the chsh first, it'll be easier.

Jim

> 
> 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
> _______________________________________________
> CLUE-tech mailing list
> CLUE-tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech
> 




More information about the clue-tech mailing list