[Resolved] Strange Issue with user logins

Thread Tools Search this Thread
Operating Systems Solaris [Resolved] Strange Issue with user logins
# 1  
Old 02-10-2014
[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.
# 2  
Old 02-10-2014
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.)
# 3  
Old 02-10-2014
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
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

Last edited by JoeDirte; 02-10-2014 at 02:22 PM.. Reason: Addded passwd file
# 4  
Old 02-10-2014
Is dummyact a member of sysadmin ? could you post /etc/group ?
# 5  
Old 02-10-2014
The dummyact is a member of the sysadmin group

# 6  
Old 02-10-2014
Can you post ls -ld /usr2
This User Gave Thanks to Scrutinizer For This Post:
# 7  
Old 02-10-2014
# 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.
This User Gave Thanks to JoeDirte For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Disable multiple ssh logins for an OS user in Solaris

Hi folks, I am fairly a beginner when it comes to Solaris OS administration, but part of my job somehow has scope to provide L1-level of OS administration over a few solaris servers. Now, we have a requirement to limit the number of simultaneous ssh logins/sessions to the server, sort of... (0 Replies)
Discussion started by: engrcha
0 Replies

2. What is on Your Mind?

Resolved: Issue in Server Data Center

Dear All, There was a problem in the data center data, which caused the server to be unreachable for about an hour. Server logs show the server did not crash or go down. Hence, I assume there was a networking issue at the data center. Still waiting for final word on what happened. ... (4 Replies)
Discussion started by: Neo
4 Replies

3. Red Hat

Limit root user of SSH logins

Hi team, I tried to modify the /etc/security/limits.conf file to limit the root user for more one login. I added the line in limits.conf file like: @root hard maxlogins 1 I also tried to modify /etc/ssh/sshd_config to limit the root userlogin by adding this: ... (10 Replies)
Discussion started by: leo_ultra_leo
10 Replies

4. Homework & Coursework Questions

Help with unix commands for user logins

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: List the last 3 times you logged into the hottub and the command(s) you used to obtain this information 2.... (12 Replies)
Discussion started by: iw2198
12 Replies

5. Shell Programming and Scripting

Script that outputs user logins sorted by duration

Hello, I want to write a script that takes a username as input and outputs the user's logins sorted by duration. Also I want to exclude the "still logged in" entries. I use the "last" command but Im having problems sorting the entries based on the duration. Can you help me? Thanks a lot =) (4 Replies)
Discussion started by: ddante
4 Replies

6. Solaris

User Logins

Is the below logins are needed in the machine..... nuucp , uucp ,smmsp , svctag , listen , webservd , ip ( We are not using printers), Can you help in these? Regards, kumar (3 Replies)
Discussion started by: rajeshkumarvg
3 Replies

7. AIX

Logging user logins

I want to know how I can turn off and turn on login logging. We have a server that appears to have stopped logging user logins. Running the who command shows nothing and the last command shows no logins for a month. The var/adm/wtmp file isn't full and there is plenty of space in the var file... (2 Replies)
Discussion started by: daveisme
2 Replies

8. Solaris

stay in multi user mode but stop logins to system?

I want to apply patches in multiuser mode but stop logins of other users while I do it? What is the best way to do this? I will be connected to the system via a putty session over a serial cable from another system (console is messed up)... Should I put in a dummy passwd and shadow file... (7 Replies)
Discussion started by: NewSolarisAdmin
7 Replies

9. UNIX for Dummies Questions & Answers

Linmit user logins

Hello everyone, traditionally a user can log in on more than one machine as much as they want. In AIX 4.3, Is there a way to make it so that if the user is already logged on, the system will not let them log on, therefor not run their logon profile script again? (limit the user to one machine at a... (1 Reply)
Discussion started by: raidzero
1 Replies

10. Shell Programming and Scripting

Trapping user logins in python ( post #1)

I am writting a daemon in python which should start at system start up with all inet.d services on an NIS server. Then it should listen to any user login and then start a new process for that user on his login which will continue throughout his entire session. Can anyone give any help or any... (1 Reply)
Discussion started by: thinkgeek
1 Replies
Login or Register to Ask a Question