Advertisement

08.18.2008 at 01:27AM PDT, ID: 23655703 | Points: 250
[x]
Attachment Details

CGI script to add users

Asked by small_student in CGI Scripting, Scripting Languages

Tags: , , ,

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

p.s: please only bash no perl as I know nothing about perl.

Best Regards



Start Free Trial
[+][-]08.18.2008 at 03:15AM PDT, ID: 22250528

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 01:55PM PDT, ID: 22255418

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628