[PHP] Re: how create system users with php

2005-02-02 Thread M. Sokolewicz
shell_exec('pw useradd username -g groupname -d /home/username -m'); however, you'd need to be running as root, or atleast need to su to root; which is quite a security hazard Umar Draz wrote: Hi dear members!! i want a script that i can add system user through php. For example i have

Re: [PHP] Re: how create system users with php

2005-02-02 Thread Marek Kilimajer
M. Sokolewicz wrote: shell_exec('pw useradd username -g groupname -d /home/username -m'); however, you'd need to be running as root, or atleast need to su to root; which is quite a security hazard I recomend sudo. You can set strict restrictions on the executed commands and its arguments. Umar