John, I have a lovely script available. Contact me privately if you like. Infact my script also allows people to add Virtual Hosts :) Regards, Sahil Gupta NET4U Limited ------------------------------------ NET4U -- www.net4u.co.nz Home of the new - $24.95 128k ADSL Nationwide Internet Service Provider ------------------------------------ On Wed, 3 Oct 2001, John Lynch wrote:
Hi people, I am trying to write some php3 code to add dialup users to the unix passwd file, I am issuing the system command to run useradd , this didn't work because you need root permissions to running the command, so I thought, hmm i'll just build a wrapper and run it suid root (probable very bad, but anyway..) Now the wrapper get's the error cannot get file lock on /etc/passwd. Any tips on why this might be happening or a better way to solve to problem would be much appreciated.
John Lynch System Administrator (string and tape specialist) Wise Net
--------- To unsubscribe from nznog, send email to majordomo(a)list.waikato.ac.nz where the body of your message reads: unsubscribe nznog
--------- To unsubscribe from nznog, send email to majordomo(a)list.waikato.ac.nz where the body of your message reads: unsubscribe nznog