Hi, I've encountered the following problem: I set up a passwd chat which seems to be working correctly. Obviously samba doesn't send the old passwd (even if told so by %o) to the local passwd program. This is explained by something like 'we're running as root, we don't need the old password'. The problem is: In our environment I do need the old password even if running as root. My question is: Is there a way to provide my passwd program with the old password?? We're using NIS on HP UX 10.20 and Samba 1.9.18p8 I'm quite sure there's no problem with my chat file 'cause when 'hardcoding' the old password in the chat everything is working fine. Thanks in advance Rainer Here are the interesting parts of my smb.conf: passwd chat debug = True unix password sync = True passwd program = /sbin/passwd %u passwd chat = Old*NIS*password: %o\n *New*password: %n\n *Retype*new*password:%n\n *The*NIS*passwd*has*been*changed* -- _ _ _ _ _ _ RAINER HAUCK |\/| |\ | |\/| Institut fuer Informatik / Dept. of CS | | | \| | | Ludwig-Maximilians-University Munich ======= TEAM ======= Oettingenstr. 67, 80538 Munich, Germany Munich Network Management Team Room D01,Phone +49-89-2178-2155,Fax-2262 Muenchner Netz-Management Team email: hauck@informatik.uni-muenchen.de
On Tue, 25 Aug 1998, Rainer Hauck wrote:> Hi, > > I've encountered the following problem: I set up a passwd chat which > seems to be working correctly. Obviously samba doesn't send the old > passwd (even if told so by %o) to the local passwd program. This is > explained by something like 'we're running as root, we don't need the > old password'. The problem is: In our environment I do need the old > password even if running as root. My question is: > > Is there a way to provide my passwd program with the old password??No, because Windows 95 doesn't send the old password in clear-text form, so samba doesn't have it. You have to find a passwd program able to change the password with the old one as running as root. Take a look on ftp://samba.anu.edu.au/pub/contributed/ J.F. ----------------------------------------------------------- Pinky: "What are we going to do tonight, Brain?" Brain: "The same thing we do every night, Pinky : try to install Windows NT !" -----------------------------------------------------------