Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a new folder online

Status
Not open for further replies.

ridzz

Programmer
Sep 30, 2001
23
0
0
MY
Hello,
I have a problem here. I want to add a new Unix account user by calling adduser via exec. I also want to create a folder for each new user. Is it possible for me to do this from a webpage that I created using tcl (or .adp)?
Hope somebody can help me here. Thanx in advance.

 
As long as your script has the permissions necessary to create the folder, you can do so with Tcl's file mkdir command. You might also want to read on the Tcl'ers Wiki ( the page on the file commands: - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
It seems that my script doesn't have access to add new users in Linux. How do i give permission so that my script can addnew users to the system?

Thanx again
 
Reading this again, as this is an OLD post, I think that
everything you want to do can be accomplished very easily
by using one of the tcl cgi_libraries, cgi.tcl from nist
(author D.Libes) is probably the best.
It should be trivial to create a form with plaintext auth
functionality and run the cgi as root.
Dangerous, but trivial. :)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top