search for: old_pw

Displaying 2 results from an estimated 2 matches for "old_pw".

Did you mean: old_p
2003 Apr 20
0
How I got Samba 2.2.8a to run on OpenBSD 3.2 i386
...; exit if !defined $username; getpwnam($username) or exit; system(split(/\s+/, "$pwd_mkdb -c $master_passwd")); exit if $?; print "new-pwd"; $newpwd = <STDIN>; chomp($newpwd); sysopen(NEW_PW, $passwd_tmp, O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK|O_SHLOCK, 0600) or exit; open(OLD_PW, "< $master_passwd"); while(<OLD_PW>){ @user = split(/:/); if($user[0] eq $username){ $user[1] = encrypt($newpwd); } print NEW_PW join(':', @user); } close OLD_PW; system($pwd_mkdb, '-p', '-u', $username, $passwd_tmp); exit if $?; close NEW_PW; unl...
2003 Jul 08
2
How to change password on web?
Dear all I've to create a webpage that let user change both their linux & samba password. Would you give me any resource to achieve this requirement? Thanks Chris _________________________________________________________ ³Ì·s¹aÁn±À¤¶:¤Q­±®I¥ñ¡A¤dª÷¡A¤ß²H... http://ringtone.yahoo.com.hk