1748251 Members
3832 Online
108760 Solutions
New Discussion юеВ

unable to login/su

 
SOLVED
Go to solution
Andrew Dutton
Frequent Advisor

unable to login/su

I am sure I just did something stupid or this could be an easy fix but for the life of me I can't figure it out. I just setup a new N4000 11.0 and have been loggin in as root no problems at all. I copied over home directories and the passwd file from another server and I have even added new users to the system and I can't login.
when trying to su I get

su: No shell
Segmentation fault


I have installed Sep 03 patches and think I have done most everything right. No matter what shell I use or which account (besides root) nothing works.

thanks in advance
7 REPLIES 7
Sanjay_6
Honored Contributor
Solution

Re: unable to login/su

Hi,

Check the permission for /, /usr, /usr/bin.

it should be 755.

Hope this helps.

Regds
Kent Ostby
Honored Contributor

Re: unable to login/su

Problem can be a space in the password file or lack of execute persmission on a key directory like /usr/ or /usr/bin or /sbin
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
RAC_1
Honored Contributor

Re: unable to login/su

I would also do pwck(if system is not trusted mode)
and pwck -s (If system is in trusted mode)

Anil
There is no substitute to HARDWORK
Kent Ostby
Honored Contributor

Re: unable to login/su

TO clarify what I posted a minute ago, if there is a space at the end of a password entry, it could cause this problem.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Steven E. Protter
Exalted Contributor

Re: unable to login/su

Any problem with permissions or the pwck command with the exception of certain users like smbull is serious and reqires immediate correction.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Dutton
Frequent Advisor

Re: unable to login/su

Yep it was the permission of / that did it... it was set to the wrong owner/group and permissions for some reason. I chnaged it to 755 bin bin... and /usr and /usr/bin is 555 bin bin not 755. Thanks to all... what an easy fix to such and annoying problem :-)
Sanjay_6
Honored Contributor

Re: unable to login/su

Hi,

The owner and group for "/" should be root:root. Permission 755. you can keep /usr and /usr/bin as 555.

Hope this helps.

Regds