Re: How to add user to linux using php

From: Date: Mon, 04 Sep 2006 23:17:02 +0000
Subject: Re: How to add user to linux using php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241360@lists.php.net to get a copy of this message
eqla3.com eqla3.com wrote:
is there any way to add user and apply password by executing shell command through php? Depending on the distribution, you should have a user addition command that takes a password argument. In my case, useradd <other args> -p '<password>' <user>. Check the manual page for adduser , useradd or your distribution's variant.
Worst case, you can even make a wrapper around the command with shell script that'll do the multiline echo for you. jon

« previous php.general (#241360) next »