Solved

suddenly, login of certain users fails...

Posted on 1998-02-06
5
165 Views
Last Modified: 2013-12-15
Hi!

It happens sometimes that, all of a sudden, a user cannot log in anymore. And even root cannot change its password!! (passwd gives ok, but /etc/shadow is NOT changed).

I've RedHat 4.2 with shadow-support installed.

Any help appreciated!
0
Comment
Question by:proffi
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:alexbik
ID: 1631342
Hi,

Can you reproduce this, or does it seem to be random?
Check your /etc/passwd. Could it be that users failing
to login have a different shell?

Does your /etc/shadow contain the same users as /etc/passwd?
Are the users in /etc/passwd and /etc/shadow in the same order?

Alex
0
 

Author Comment

by:proffi
ID: 1631343
I found a workaround: If I move the user to a different location in /etc/shadow, it works again!! (whether to the top or to the bottom doesn't matter).

Of course I checked etc/passwd and /etc/shadow and /etc/group and they seem correct. All users have NO console access, only chrooted ftp to their home directory. I therefore checked the rights on their homes and they were ok, too...

What really struck me is, that passwd finished ok ("all authentication tokens updated successfully") whereas neither /etc/passwd nor /etc/shadow have been changed!

That happened now the second time since I installed RH4.2... OK I can live with it (as I now know how to proceed), but it's definitely not a feature, isn't it ? ;-(

proffi
0
 
LVL 2

Expert Comment

by:alexbik
ID: 1631344
Have you tried another passwd program (or script)?

Alex
0
 
LVL 4

Accepted Solution

by:
jlms earned 200 total points
ID: 1631345
Check the permissions and ownerships of both files (passwd and shadow),, maybe nobody can write to them, another thing to check are the permission of the program you use to manage these files (usually the passwd program), it should be suid-ed to allow  other users (different to root)  to modify the files.

  Check also the permissions of the /etc directory, it could be that there is no permission to modify the directory, meaning the contents is untouchable.
0
 

Author Comment

by:proffi
ID: 1631346
Hi!

After upgrading to RH5 the problem disappeared. Thanks anyway!

I hope you got the points..

RU
theprofessor
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now