You could force a sync so to speak.... as root run vipw then take a user ... duplicate that users line and add a 2 (or some other symbol after the uname) then save... do the same for the same user when it asks if you want to edit shadow passwd. Then without logging out. try logging in as a user..... This will force a rewrite of both files. If this works.... vipw again.. and remove the line you just added.
IF when you run vipw and you find that the ONLY user is root.... cp passwd passwd.mybkp cp passwd- passwd vipw... This should (hopefully) reset the old passwd file. However since you can ssh in and since you said before that you'd installed the anti-hack version of ssh .... the second case shouldn't be true. James On Sat, 2003-01-11 at 13:59, 1577910929 wrote: > > This is a multi-part message in MIME format... > > > > > > On Sat, 2003-01-11 at 12:36, 1577910929 wrote: > > *snip* > > > Now... It won't allow users to log in. I *CAN* log in as root, but not a > > > normal user. > > > Also, e-Mail stopped working, as did the web server. > > > > > *snip* > > > Jan 11 10:30:30 <server> sshd[3503]: Accepted password for <user> from > > > xx.xx.xx.xxx port 33509 ssh2 > > > Jan 11 10:30:30 ibu sshd[3505]: fatal: login_get_lastlog: Cannot find > > > account for uid 500 > > > > > > > Here's a thought. force a fsck and a badblock check on the partition > > with /etc on it. it could be a failing drive. Also, your > > password-shadowing could be fudged up, and not passing the accounts back > > from the shadow and passwd files. > > I would agree with the shadowing being fudged up. That's pretty much the > behaviour. The question then becomes: How to fix it? > > This not only impacts logins, but it also stopped my web server, and e-Mail. > > > Ric > > > > ______________________________________________________________________ > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
