1833192 Members
2878 Online
110051 Solutions
New Discussion

login fails

 
SOLVED
Go to solution
marc seguin
Regular Advisor

login fails

I can't login for a specific user on my server :
# su - baduser
bus error

#rlogin server -l baduser
bus error

Shell is /usr/bin/sh
I commented all lines in .profile except "echo mytest". And I get the same result (with "mytest" on output).
7 REPLIES 7
Umapathy S
Honored Contributor

Re: login fails

Is there any messages in /var/adm/syslog/syslog.log. The login gets bus error even before it reaches .profile. So it might be some other problem.

Is /usr/bin/sh intact. I think there may be some problems with the passwd. Any special chars?

Are you calling any script in /etc/profile which is somehow invalid for this user.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
G. Vrijhoeven
Honored Contributor

Re: login fails

Hi,

Stange...
Can you do a dd if=/usr/bin/sh of= /dev/null
When you use a different shell for the user ( ksh) do you get the same error?

Gideon
marc seguin
Regular Advisor

Re: login fails

I think that the problem occurs after the .profile because the commande "echo mytest" is executed before the message "bus error" appears.
G. Vrijhoeven
Honored Contributor

Re: login fails

Hi,

Did you check the .cshrc file

Gideon
Robert-Jan Goossens
Honored Contributor
Solution

Re: login fails

Marc,

Could you try this,

# cd /home/baduser
# mv .sh_history sh_history.bad
# touch .sh_history
# su - baduser

Regards,
Robert-Jan
Umapathy S
Honored Contributor

Re: login fails

Robert-Jan got it. I have experienced may problems in the past due to a bad history file.

Empty or remove the history files.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
marc seguin
Regular Advisor

Re: login fails

Thanks, it works.