From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,61fb872b3dabb3a3 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Editiing /etc/passwd Date: 1999/01/12 Message-ID: <369AFB32.22F6BCE6@ev.co.yu>#1/1 X-Deja-AN: 431573954 Content-Transfer-Encoding: 7bit References: <3695C60B.41C6@usa.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: EPS JP Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Fiorino Alessandro wrote: > > I'm trying to write a program to change non-interactivly the password > for an user: I'm writing directly to the /etc/passwd file using the > putpwent function, but after the change the system still recognize the > old password. Does it use an internal cache for the passwords ? How can > I update it ? There is a command "mkpasswd". It rebuilds passwd hashed database, look into it. Nix.