Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to setup Samba to ask for password reset when the user first logs in without the need to setup a domain controller? Would this work properly with Windows clients or with clients using Linux with file managers like Krusader or Nautilus? Could somebody give me a few pointers how to implement this if is possible? I'm pretty new to Samba and I use it as a file server and I would like to have such a feature on it, but I'm not sure if it's possible. Thanks!

share|improve this question

3 Answers 3

up vote 2 down vote accepted

@crazybyte, @Nexus: Of course this is possible. See the explanation of passwd chat and passwd program parameters in man smb.conf.

(Sorry for mis-using an answer for what should be a comment to your answer. My karma doesn't increase here (as opposed to stackoverflow.com and superuser.com), so I'm not allowed to comment...)

share|improve this answer
    
Question was is it possible to reset the samba password from the client (Windows or Krusader/Nautilus). The commands you provided are for running on the Samba server. –  Nexus Jan 23 '12 at 8:02

You could use preexec on the user-share and fire up a Infobox (net send like). under linux you can use this one : echo "text" | smbclient -M hostname %m or %I can be used instead of hostname. (man smb.conf for the meaning)

There you can point out the need of pw-changing.

share|improve this answer

I don't think this is possible. Samba is an implementation of the SMB/CIFS protocol, which doesn't contain password reset functionality.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.