[Resolved] Strange Issue with user logins

Ok got a strange one here. None of my user accounts are able to login into the system. When trying to ssh to the server i get the following.

Could not chdir to home directory /home/<homedir>: Permission denied
/bin/sh: Permission denied

I checked the permissions on the home directory and even tried changing them to 777. Also checked the permissions of /bin/sh which is a link to /sbin/sh which has permission 755.
When attempting to login through the console I get the message

No directory!

I can log into the box fine with the root account, and have checked the passwd and shadow file to ensure they are not corrupted. Everything looks fine. I even tried deleting a user account and removing the home directory and recreating the account with a new homedir continues to give same error message.

System is T5140 running solaris 10, everything was working fine up until about a week ago.

It would be more helpful if you would list your file and directory permissions using ls -l and ls -ld commands and give us a more complete view of your situation.

You should also show the password file as well (since there are no passwords there), but remove any sensitive data (like actual user names etc.)

Here are the file/directory permissions

# ls -ld /home
lrwxrwxrwx   1 root     root          11 Feb  7 12:19 /home -> /usr2/home/
# ls -ld /usr2/home
drwxrwxrwx  35 root     root        1024 Feb  7 12:17 /usr2/home
# ls -ld /home/dummyact
drwxr-----   2 dummyact sysadmin     512 Feb 10 12:12 /home/dummyact
# ls -l /sbin/sh
-rwxr-xr-x   1 root     root       95492 Sep 22  2010 /sbin/sh
# ls -l /bin/sh
lrwxrwxrwx   1 root     root          13 Dec 16 11:42 /bin/sh -> ../../sbin/sh
#
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
unknown:x:96:96:Unknown Remote UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
sshd:x:67:67:SSHD PrivSep User:/home/sshd:/bin/false
dummyact:x:1001:14:Dummy Account:/home/dummyact:/bin/sh

Is dummyact a member of sysadmin ? could you post /etc/group ?

The dummyact is a member of the sysadmin group

root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:dummyact
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
unknown::96:
nobody::60001:
noaccess::60002:
nogroup::65534:
sshd::67:

Can you post ls -ld /usr2

1 Like
# ls -ld /usr2/
drwxr-xr-x   7 root     root         512 Feb  9 00:00 /usr2/

---------- Post updated at 01:38 PM ---------- Previous update was at 12:44 PM ----------

Figured it out. Somehow the permissions on / had been changed to 750 instead of 755. Hadn't thought to check the permissions on /. did a

chmod 755 /

Everything is working again and user accounts can now log in.

1 Like

Good! Thanks for reporting back...