Re: [PHP] How to add user to linux using php

2006-09-05 Thread Jon Anderson
J R wrote: 1. give user apache the addusser priviledge (which is very unsecure), then execute shell_exe as root would. 2. create a root process like a cron job which will start at boot of your server, then on your shell_exe pass your command to that process and have that root process execute tha

Re: [PHP] How to add user to linux using php

2006-09-04 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 1) You can configure nobody (apache/php user) to log with ssh key verification (You do not need to write a password) So you can execute "ssh [EMAIL PROTECTED]" and you can login without write any password. 2) Configure a php that execute a perl scri

Re: [PHP] How to add user to linux using php

2006-09-04 Thread J R
you have to understand that the adduser is a previledge command and a root only command (unless you allowed other users) and normally php will and should be running in a restricted access. normally it is running as user apache/user/nobody (depends on your settings) now there are two ways you can a

Re: [PHP] How to add user to linux using php

2006-09-04 Thread Jon Anderson
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 -p '' . Check the manual page for adduser , useradd or