--- loncom/lcpasswd 2003/02/03 18:03:52 1.19 +++ loncom/lcpasswd 2005/04/07 22:27:52 1.21 @@ -7,7 +7,7 @@ # YEAR=2002 # 02/19 Matthew Hall # -# $Id: lcpasswd,v 1.19 2003/02/03 18:03:52 harris41 Exp $ +# $Id: lcpasswd,v 1.21 2005/04/07 22:27:52 albertel Exp $ ### ############################################################################### @@ -159,9 +159,9 @@ open OUT,"|pwchange $safeusername"; print OUT $password1; print OUT "\n"; close OUT; -($>,$<)=(0,500); +($>,$<)=(0,$wwwid); -print "pwchange done, back to uid 500" unless $noprint; +print "pwchange done, back to uid $wwwid" unless $noprint; if ($?) { exit 8; @@ -173,7 +173,7 @@ if (-e '/usr/bin/smbpasswd') { ($>,$<)=(0,0); # fool smbpasswd here to think this is not a setuid # environment -# If the -a swithc is put on the smbpasswd +# If the -a switch is put on the smbpasswd # command line, either a new entry will be created or the old one # will be used. # Therefore the old strategy of looking for and adding a dummy entry is