CGI to add users

Support for webhosts that use CentOS
Post Reply
Greenman
Posts: 20
Joined: 2007/02/25 16:08:44

CGI to add users

Post by Greenman » 2008/07/31 11:17:02

Hi Guys:


Can anyone help me get a CGI script using bash to add users to the system, CentOS 5.0 ..

I usually do this with regular bash and dialog scripts , but I wanted to add some Web interface to the script, like using html forms, I have failed mostly when excuting commands like /usr/sbin/useradd...etc

mostly erros are you dont have privilge , I tried to Sudo the apache user , still I get sudo requires shell, I gave the apache user /bin/bash in his /etc/passwd and still the same.

Anyway any proposed script would be highly appreciated as long as it is pure html and bash, Thanks


Best Regards


Green

Post Reply

Return to “CentOS 5 - Webhosting Support”