From: Edward S.P. L. <edw...@gm...> - 2010-11-05 00:01:43
|
Dear Jamie, Sorry.... Would you mind to help ? Thanks ! Edward. ---------- Forwarded message ---------- From: Edward S.P. Leung <edw...@gm...> Date: 2010/11/4 Subject: Re: [webmin-l] change password problem in usermin To: Webmin users list <web...@li...> Cc: jca...@we... Dear Jamie, About the current config : [root@host ~]# cat /etc/pam.d/passwd #%PAM-1.0 auth include system-auth account include system-auth password substack system-auth -password optional pam_gnome_keyring.so [root@host ~]# [root@host ~]# cat /etc/pam.d/usermin #%PAM-1.0 auth required pam_unix.so account required pam_unix.so password required pam_unix.so shadow nullok use_authtok session required pam_unix.so [root@host ~]# [root@host ~]# cat /etc/pam.d/webmin #%PAM-1.0 auth required pam_unix.so shadow nullok account required pam_unix.so password required pam_unix.so shadow nullok use_authtok session required pam_unix.so [root@host ~]# Thanks ! Edward. 2010/11/4 Jamie Cameron <jca...@we...> > Ok, now we are getting somewhere .. it looks like by default your system is > using some password hashing format that Webmin doesn't understand. > > What does the /etc/pam.d/passwd file contain on your system? > > On 03/Nov/2010 07:30 Edward S.P. Leung <edw...@gm...> wrote .. > > Dear Jamie, > > For methods 1, > 1.1, [root@host ~]# adduser iam1231 > [root@host ~]# passwd iam1231 > Changing password for user iam1231. > New password: > Retype new password: > passwd: all authentication tokens updated successfully. > [root@host ~]# > > 1.2, /etc/shadow: > > iam1231:$6$AvDpF5X8$gsJ6bZxvZg4wSMrKLeRst4Q0ZbM3ap7Qpxrn7tYlc0N4mTLJpks1NdBKgTxPM8fzF5ULUAuM4IFCeyU1b.JIv1:14916:0:99999:7::: > > 1.3, Usermin ( Change Password ) : > Failed to change password : Old password is incorrect > > 1.4, iam1231" can use ftp server > > For methods 2, > 2.1, Reset password of "iam1231" in Webmin: > The password for user iam1231 has been changed successfully. > > 2.2, /etc/shadow: > iam1231:IWA4fhLWdqEkY:14916:0:99999:7::: > > 2.3, change password of "iam1231" in usermin: > Your password for iam1231 has been changed successfully. Any telnet, SSH, > FTP or POP3 logins made from now on will require the new password. > > 2.4, /etc/shadow: > iam1231:$1$88792568$sjZRisHN9mNWnYZtPiHdB/:14916:0:99999:7::: > > 2.5, "iam1231" can use ftp server also.... > > Actually, how can we change the password in usermin ( without reset the > default password in webmin again ) ? > > Thanks ! > > Edward. > > 2010/11/3 Jamie Cameron <jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> > > > >> Interesting, maybe this is a password format issue. >> >> If you look at the user's line in the /etc/shadow file after methods 1 and >> 2, what does it contain? >> >> On 01/Nov/2010 21:54 Edward S.P. Leung <edw...@gm...<http://reply_mail.cgi?new=1&to=edwardspl%2Emo%40gmail%2Ecom>> >> wrote .. >> >> Dear Jamie, >> >> I have tried to do the following test : >> 1, if I just create new user account by using "adduser" and "passwd" >> command in OS... >> then, change the password in usermin, there is the error message : >> Failed to change password : Old password is incorrect >> 2, if I just create new user account by using "adduser" and "passwd" >> command in OS... >> then, re-set the password in webmin, finally, change the password in >> usermin, the result is okay ! >> >> 3, if I just create new user account by using "adduser" and "passwd" >> command in OS... >> then, *Configurable options for Change Password* >> *Change with* Use PAM or passwd command >> Directly update file >> Use command >> User's browser hang..... >> >> So, what problem ? >> >> Thanks ! >> >> Edward. >> >> 2010/11/2 Jamie Cameron <jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> >> > >> >>> No, that shouldn't generally be necessary - once you have created the >>> account, usermin should be able to do the password change. >>> >>> Does it work if you change it from the command line with the "passwd" >>> command? >>> >>> On 01/Nov/2010 07:40 Edward S.P. Leong <edw...@it...<http://reply_mail.cgi?new=1&to=edwardspl%40ita%2Eorg%2Emo>> >>> wrote .. >>> >>> Dear Jamie, >>> >>> Sorry... >>> >>> I want to know : >>> Must we need to create new user password by using webmin first, then user >>> can change their own password by using usermin ? >>> >>> Due to the error message when user tried to change their own password: >>> Failed to change password : Old password is incorrect Thanks ! >>> >>> Edward. >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Nokia and AT&T present the 2010 Calling All Innovators-North America >>> contest >>> Create new apps & games for the Nokia N8 for consumers in U.S. and >>> Canada >>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >>> marketing >>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >>> http://p.sf.net/sfu/nokia-dev2dev >>> - >>> Forwarded by the Webmin mailing list at >>> web...@li...<http://reply_mail.cgi?new=1&to=webadmin%2Dlist%40lists%2Esourceforge%2Enet> >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> >>> >> >> >> >> ------------------------------------------------------------------------------ >> Nokia and AT&T present the 2010 Calling All Innovators-North America >> contest >> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >> marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> - >> Forwarded by the Webmin mailing list at >> web...@li...<http://reply_mail.cgi?new=1&to=webadmin%2Dlist%40lists%2Esourceforge%2Enet> >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> > > > > ------------------------------------------------------------------------------ > Achieve Improved Network Security with IP and DNS Reputation. > Defend against bad network traffic, including botnets, malware, > phishing sites, and compromised hosts - saving your company time, > money, and embarrassment. Learn More! > http://p.sf.net/sfu/hpdev2dev-nov > > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > |