What happened to my user accounts?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What happened to my user accounts?
# 1  
Old 03-27-2002
Error What happened to my user accounts?

Ahhhh!!!!!!!!
All of my user accounts can no longer login. I suspected a corrupt passwd file, but everything looks OK and the passwd file works when I copy it to another system. All user accounts cannot login...they recieve a "No directory defined" error, but I can logon using root just fine. I have no idea what could have caused this, but I was hoping that maybe someone has seen this before and can help me recover. I'm running Solaris 8 on a Sun Netra T1. Also I have checked all the permissions on the users' home directories as well as the permissions on the passwd and shadow files and all is setup OK. Could be a PAM issue as well, but I would not know how to confim this. Any help would be much appreciated.

Thanks in advance.
Jeff Miller
# 2  
Old 03-27-2002
Can you su to those users - is there home directory there and mounted (check for NFS problems if appropriate) ?

If mounting NFS directories - also check DNS or /etc/hosts for the server where the mounts come from. Make sure you can mount from there.
thehoghunter
# 3  
Old 03-27-2002
I ssh into the server and login as root. If I issue a login, and login as another user, my ssh session closes. There are no NFS mount points configured on this server.
# 4  
Old 03-27-2002
Can you as root do a su - joeuser (please put in one of the userID instead of joeuser)?

There is NOTHING on SunSolve for this - normally if a directory is missing or mistyped in /etc/passwd you get dumped into / or /tmp as a home directory. I changed my /etc/passwd file to add a space in different places but could not create your error.

Ask yourself what changes occurred - who else may have changed something -

Do you use any products or scripts to administer user accounts - any changes to those (or bugs that would have to be found on 3rd party web sites).

Any backups happening while someone could have been changing their password - (I haven't seen that problem since 4.1.x but you never know)

Oh, I'm on my way out of here so hopefully someone else is watching for your answers and have more info. Good luck - I'll check back in later (possibly)
thehoghunter
# 5  
Old 03-27-2002
I am not sure about this ,
But I used Winscp once to check my ssh configuration . It couldnt find my home directory , even though i could telnet it properly .

Also another thing to note was . Using OPENSSH for Windows worked perfectly
Even Putty and pscp worked nice . I had no answer why it wasnt working for Winscp .
If u r doing an ssh from Windows , Just try a different software to connect ...

DP
# 6  
Old 03-27-2002
I use the latest version of Putty and everything works fine. I can connect and logon as root just fine. I just cannot logon as any other user. This server is an FTP so none of the users can connect via FTP as well. They recieve "Logon Failed". When the system boots up, there is a message that the ytem could not read from the passwd file but the permissions on the passwd file are 444 and 400 for the shadow file. Luckily I am able to still logon as root and copy all of my files to another system. But I would still like to know if anyone has ever encountered a situation like this before. It baffles me how one minute everything works great and the next everything is broken. The last thing I did on the server before it went nuts was set some permissions on a user's home directory. I know I did a "chmod ~" on accident, but didn't think this was even a valid command so I didn't think nothing of it. Oh well, I may just have to bite the bullet on this one and re-install, but if anyone has any ideas....I would love to hear them.
# 7  
Old 03-27-2002
I never saw a post back if you can login as root and su - to a user or not.

As far as seeing this exact problem - no.

When you did the chmod ~, were you root? If so, it may have changed ~ which is the home directory of the user logged in, in this case possibly, root. If root's home dir is /, then that may be the problem.

Check your permissions for your top level directories (especially /etc and /usr) - this may be where you have a problem.

If there is more to the error message then your original post, please post it. If you get a different error when attempting to su - to one of those users, post it.
thehoghunter
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. OS X (Apple)

Thunderbird user accounts

Hi All I am trying to find a way to set-up a thunderbird account by using a script, i have been trying to to add the lines into the pref.js file but it keeps getting overwritten any help would be great thanks Adam (0 Replies)
Discussion started by: ab52
0 Replies

2. Solaris

Help with user accounts

Hi All, How to know all the shells a user has access. Thank you . (0 Replies)
Discussion started by: rama krishna
0 Replies

3. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

4. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

5. Shell Programming and Scripting

Creating user accounts

Hi, I have written a program using shell scripting. When you run the file it will asks you to enter the user name, if the user exists it says " user exists " if not it will displays like " user doesnt exist" and then asks you like " do you want to add user with options Yes or No " if you say... (1 Reply)
Discussion started by: vishwaprasad
1 Replies

6. UNIX for Dummies Questions & Answers

Creating user accounts

Hey everyone I am new to the forums and to Unix. I am currently taking a class on Unix, our teacher posed the question to us How do u create a user account without using GUI or command? We are currently running Knoppix version of Unix and for the life of me I can't figure out how this is possible.... (0 Replies)
Discussion started by: Redditt90kg
0 Replies

7. UNIX for Dummies Questions & Answers

User Accounts

Hi, I was wondering if someone could tell me how to display a list of all existing user accounts on the system, not neccesarily looged in. Thanks in advance Stephen (3 Replies)
Discussion started by: sroberts82
3 Replies

8. UNIX for Dummies Questions & Answers

Help with user accounts

I have a root access to a UNIX system. I want to create another account with administrative permissions (create users, delete them, manage print and system configuration), how do I do that? I have a Solaris 9 (SunOS 5.9) installed. Please help. :o (3 Replies)
Discussion started by: neked
3 Replies

9. Shell Programming and Scripting

User Accounts

I have found a script to create user accounts. But there are a few lines i dont understand. Can someone help me with this? Here's the code: ###################################### while ; do ACCT=${USER_ACCT}${START} START=`expr $START + 1` START=`echo ${START} | awk... (3 Replies)
Discussion started by: Sensor
3 Replies
Login or Register to Ask a Question