Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can user Change their Password without using telnet

Status
Not open for further replies.

ushasharma

Programmer
Jul 26, 2001
18
IN
I am using Linux Redhat 7.1 version. Rest of our nodes are win'95 based.

Now my users are facing problems of changing the password.

Can any one suggest me how can my users change their password from win95 based m/c.

Is there any way so that my users can change their paswords thru GUI MODE.
Thanx in advance for providing help.

usha sharma
 
Hi,



In your /etc/samba/smb.conf file you need (amongst all the other stuff !) :



encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd

unix password sync = yes

passwd chat = \ *old*password %o\n *new*password* %n\n *new*password* %n\n *changed*

passwd chat debug = False

passwd program = /bin/passwd



The idea is that if a win-user changes their password samba will run passwd on the Linux box as root to sync whats in passwd with whats in smbpasswd. Problems that may arise include (i) the passwd chat macro doesn't match your site set-up i which case you'd need to tweak it (ii) pam authentication is in use.



In the latter case, w.e.f samba 2.2 I think you can just have



pam passwd change = yes



Instead of 'unix passwd change=yes' in the config file and use the same passwd chat paramater.



Most of this can be done thru SWAT under 'security' (advanced view).



Rgds



 
check out cgi/web. i would create a web interface with perl that would change their password.

blah, blah, this isnt secure though, blah blah.
now that thats out of the way.

ask in the cgi programing area to see if someone has done this before.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top