[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/shadow corrupted?



Hello everybody,

I'm using changepassword.cgi script to change windows
clients samba passwords.
http://changepassword.sourceforge.net/ There are this
files and directory involved to complete process and
change samba password:
/etc/passwd file
/etc/shadow file
/etc/samba/smbpasswd file (if samba changing was
enabled)
/etc/squid/passwd file (if squid changing was enabled)
/tmp directory

Last week I add new accounts  and after that
chnagepassword script gives me error message that :
---------------------------------------------
User not found or invalid.

Please go back and try again.
---------------------------------------------

I 'm sure that user exist and this is happennig with
all users as well as users which had accounts for long
time already. When I try login from windows using what
ever username I choose it is working. So just
changepassword script does not. I have correct
permitions fro all files and /tmp directory so there
is no problem as well. I started investigate more deep
and I found this:

#cat /etc/shadow
w4800:$1$$MgA9jrl3XSeek8dIjBZEZ/:12808:0:99999:7:::
w4794:cMu.Q6T/KJ3lM:12808:0:99999:7:::
w4786:NNh2Il.Ygrqa6:12808:0:99999:7:::
w3668:pqnpmLuPxkreo:12808:0:99999:7:::
w4020:ntvS.penB9oCM:12808:0:99999:7:::
w3992:XuogdW3jxYi1U:12808:0:99999:7:::
abhi:$1$$gCffpeSodebmOKqmZYPjo0:12808:0:99999:7:::
w5360:$1$$lIN11JVA8dIRivYzVSCAM1:12808:0:99999:7:::
clamav:BHO4nHbVVg/f2:12808:0:99999:7:::
w4753:Iyl5P.tmWp.PA:12808:0:99999:7:::
w4867:m.DnuCreBeQMc:12808:0:99999:7:::
w4869:Y.YfIaLU240NY:12808:0:99999:7:::
w4873:H.l9Lej7uTpUg:12808:0:99999:7:::
w4972:rz.baus5mlWxc:12808:0:99999:7:::
w5028:ZzJOTwBtDuMSg:12808:0:99999:7:::
w5040:EzmE2GO9nHQ9Q:12808:0:99999:7:::

now
#pwunconv
#cat /etc/shadow-

w4800:$1$$MgA9jrl3XSeek8dIjBZEZ/:12716:0:99999:7:::
w4794:cMu.Q6T/KJ3lM:12685:0:99999:7:::
w4786:NNh2Il.Ygrqa6:12685:0:99999:7:::
w3668:pqnpmLuPxkreo:12718:0:99999:7:::
w4020:ntvS.penB9oCM:12718:0:99999:7:::
w3992:XuogdW3jxYi1U:12718:0:99999:7:::
abhi:$1$$gCffpeSodebmOKqmZYPjo0:12718:0:99999:7:::
w5360:$1$$lIN11JVA8dIRivYzVSCAM1:12718:0:99999:7:::
clamav:BHO4nHbVVg/f2:12764:0:99999:7:::    <=== this
is clamav anitivirus and my problems started after
this point where I add new users.
w4860:!:12801:0:99999:7:::
w4753:!:12801:0:99999:7:::
w4867:!:12801:0:99999:7::: <=== This seems to me
incorect with compare to old accounts but all
w4869:!:12801:0:99999:7::: <=== accounts are working
without problems
w4873:!:12801:0:99999:7:::
w4972:!:12801:0:99999:7:::
w5028:!:12801:0:99999:7:::
w5040:!:12801:0:99999:7:::

I tried to remove and add users again but the same
problem occur. Does any body have idea what is going
on? Any suggestions appreciated.

thanks

./lubo


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com



Reply to: