* Editiing /etc/passwd
@ 1999-01-08 5:00 Fiorino Alessandro
1999-01-11 5:00 ` Peter Mueri
1999-01-12 5:00 ` Nikola Milutinovic
0 siblings, 2 replies; 3+ messages in thread
From: Fiorino Alessandro @ 1999-01-08 5:00 UTC (permalink / raw)
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 ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Editiing /etc/passwd
1999-01-08 5:00 Editiing /etc/passwd Fiorino Alessandro
@ 1999-01-11 5:00 ` Peter Mueri
1999-01-12 5:00 ` Nikola Milutinovic
1 sibling, 0 replies; 3+ messages in thread
From: Peter Mueri @ 1999-01-11 5:00 UTC (permalink / raw)
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 ?
Yes
>How can I update it ?
See vipw. This VI editor also updates the internal cache.
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Editiing /etc/passwd
1999-01-08 5:00 Editiing /etc/passwd Fiorino Alessandro
1999-01-11 5:00 ` Peter Mueri
@ 1999-01-12 5:00 ` Nikola Milutinovic
1 sibling, 0 replies; 3+ messages in thread
From: Nikola Milutinovic @ 1999-01-12 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-01-12 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-08 5:00 Editiing /etc/passwd Fiorino Alessandro
1999-01-11 5:00 ` Peter Mueri
1999-01-12 5:00 ` Nikola Milutinovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox