Re: passwd command

From: Date: Fri, 18 Aug 2000 10:16:43 +0000
Subject: Re: passwd command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12453@lists.php.net to get a copy of this message
Caldera OpenLinux User wrote: > > I want to add users automatically. > But, I don't know how to do the command about this. > > ex) I tried to this.... > > <? > > function passwd($user, $new_passwd,$re_passwd) { > > > $passwd = $new_passwd."\n".$re_passwd; > system("echo $passwd | passwd $user"); > } You can't do this that way. You may use 'chpasswd', then look at 'man chpasswd'. -- pozdrawiam.. ## ## | Sylwester Zarębski - ISP Group | #### ## | e-mail: sylwek@isp.net.pl | ## ## ## | ICQ uin: #45780888 | ## #### ## | Administrator ISP.NET.PL |

« previous php.general (#12453) next »