LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2012, 01:49 AM   #1
rajib_145
LQ Newbie
 
Registered: May 2012
Posts: 12

Rep: Reputation: Disabled
Question 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!!!!
Attached Files
File Type: txt Code.txt (1.1 KB, 21 views)
File Type: txt Error.txt (828 Bytes, 15 views)

Last edited by rajib_145; 05-24-2012 at 01:51 AM. Reason: Sorry forgot to attach the files
 
Old 05-24-2012, 02:00 AM   #2
rajib_145
LQ Newbie
 
Registered: May 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Kindly help in this regards, please let me know for any other details. Egerly waiting for your reply Gods.
 
Old 05-25-2012, 02:19 AM   #3
rajib_145
LQ Newbie
 
Registered: May 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi All,
Please help if you can..

---------- Post added 05-25-12 at 12:49 PM ----------

or Kindly let me know if i am in a wrong thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a directory at user home using shell script nagendrar Solaris / OpenSolaris 10 04-30-2010 05:30 AM
Trying to create a /home/user for a new user on a remote server Cyberman Linux - Server 1 03-27-2010 05:27 PM
How to call Shell Script on a remote server with remote servers env variables need Linux - Server 1 10-14-2009 08:37 PM
Create user accounts from shell script? maheshkodamati Linux - Newbie 1 02-26-2008 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration