Operating System - HP-UX
1825780 Members
2254 Online
109687 Solutions
New Discussion

Strangeness between bash and /etc/utmp

 
Mike Reaser
Advisor

Strangeness between bash and /etc/utmp

I just installed bash from the Utah archives, and everything is copasetic save for one little problem.

I added "/usr/local/bin/bash" to /etc/shells, and did a "chsh" on a user to let them have bash as their login shell.

All worked fine until they went to login as another user. At that time we got the dreaded

No utmp entry.You must exec "login" from the lowest level "sh".

message. I know, everyone's thinking "corrupt utmp file, recreate it".

Well, no. I chsh that user back to /usr/bin/sh and they can then login as anyone they choose. It's *only* from bash that I'm getting the utmp whine. Not from Posix, not from the C shell -- *only* bash.

I'm stumped and grasping at straws. Does anyone have *any* clue why login from the bash shell complains, but login from any other shell is just fine?

Mike