add user, directory, etc. via cgi


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users add user, directory, etc. via cgi
# 1  
Old 10-05-2001
Error add user, directory, etc. via cgi

Hello All (yes I mean you):

I'm a self taught programmer, so please bear with me and my ignorance.

What I Am Trying To Do:

I am attempting to create a user (and all the accompanying attributes like a home directory, entry in the passwd file, disk quota allotment and skel selection for a chrooted account) on a redhat linux 6.2 installation via an html form.

My Problem:
I don't know how to do it.

Any suggestions will be GREATLY appreciated! Samples scripts would be even better!

Thank you, All, in advance for your assistance.

gfoxjr
# 2  
Old 10-05-2001
Yes u can di all this with CGI.

the first thing is to choose the language for cratin your CGI, i think Shell (Bourn or Korn ) will run well.

for creatin for example user just save in text file
user.cgi :
mkuser (AIX), useradd or adduser syntax

eg. adduser -u login -......

Don't forget to change mode : chmod o+r user.cgi

and thant just save it under :

.../cgi-bin/

your link will be :
http://...../cgi-bin/user.cgi



good luck
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux sftp — how to add new user to access exist directory with write permission?

I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies

2. Shell Programming and Scripting

Perl cgi pages out of cgi-bin folder in WINDOWS

Hi team, I have a typical problem with cgi pages in apache webserver in WINDOWS I am able to execute(display) the pages that are saved in cgi-bin folder. But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder. Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies

3. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

4. Shell Programming and Scripting

add user script while looking for directory

sorry didnt see that thread at first thanks (1 Reply)
Discussion started by: pbhound
1 Replies

5. Solaris

add a ftp user with read and write permissions on a directory

hi all how I can create an ftp user in solaris 10 and have read and write permission on a directory. Thanks. (1 Reply)
Discussion started by: luisfja
1 Replies

6. Shell Programming and Scripting

create a new directory from cgi script

hello. i hav accepted name of directory from user through a form.now i need to create a directory under cgi-bin of that name.I am not able to do so.n help is required (12 Replies)
Discussion started by: raksha.s
12 Replies

7. Web Development

User authentication for some Perl CGI scripts

Hi, I am trying to create a web interface with Perl CGI with 2 pages. The content of these pages is dependent on the user accessing it. Thus, I need some kind of authentication to identify WHO is logging in but I DO NOT WANT to be restricting the pages to a few. What is the best way to prompt... (8 Replies)
Discussion started by: garric
8 Replies

8. Shell Programming and Scripting

CGI passing arrays/hashes to another CGI script

If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link? Hope that makes sense! :) (2 Replies)
Discussion started by: WIntellect
2 Replies

9. Cybersecurity

Run CGI As User..?

Hi, My server is set up so that all cgi scripts are run as user nobody, instead of the user's username. Now I know you can use cgi-wrappers, but someone please give me detailed information, on how to make ALL scripts run on the server to by default, run as the user? And not to run as user... (1 Reply)
Discussion started by: jason6792
1 Replies
Login or Register to Ask a Question