CGI Shell Script to create user on remote server
Hi Linux Gods,
I need some help in cgi-shell scripting, the post may little big but still im posting it big just make you understand the full senario nicely and help me out:
This is all about creating user through Apache server.
Ok The senario:
A html FORM page which captures user details like username gecos etc. etc, and passes to a CGI Shell Script to process the request.
I have changed the apache user to a different NIS User and added to wheel group with NOPASSWD preveledge in /etc/sudoers
And also created passwordless login on the remote server for the user running as Apache webpage.
Successful Part
Now html FORM works fine and CGI Shell Script also captures the data.
It is successfull in loggin in to the remote server.
The Problem
After it gets inside the remote server, the user is able to create the user.
I donot understand the problem, as i am totally to all of this, Apache, CGI-Shell Scripting etc etc. so a true Newbie
I have attached the code and the error received, Kindly help me!!!!
Last edited by rajib_145; 05-24-2012 at 01:51 AM.
Reason: Sorry forgot to attach the files
|