LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2006, 06:49 PM   #1
br00tal
Member
 
Registered: Apr 2005
Distribution: Slackware 11.0-12.1
Posts: 56

Rep: Reputation: 15
Web-Based Linux Account Creation


Hello,
I have set up a little server box for a class that I'm attending to enable students to share certain works/ideas that they have done, and I only need one more little thing before I want to release it's address to the class. I would like for these students to be able to create their accounts through a web-based form that's hosted on the box by Apache. In other works, when they go to http://theserverbox/adduser.php/html/whatever, they are greeted with a form in which they fill out and it executes "adduser" with the information for the form.

I know that I'd have to give Apache sudo permissions on adduser, chmod, and whatever other programs the script uses, but that's as for as I can get. I figured PHP or Perl would be the best way to encode this. PHP is preferred. The problem is that I know nothing about PHP, and am having a hard time figuring out how to go about this.

Can someone help me with this? Or if this already exists, could you please point me in the right direction (I DID search for this, so I'm not trying to just cut to the chase, here).

Oh, and I'm aware of the fact that this probably holds certain security issues and what not, but since it's only going to be accessible to the class through the school's LAN, I'm not too worried about problems...;-).

Thanks,
Jesse
 
Old 02-21-2006, 02:21 PM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
maybe exec would help.. i dont know if there is a more preferred way or not..
http://us2.php.net/exec

idea..
to restrict access to only your students you could have php check against a database with student ids.. and maybe have them verified with their birthdate or something.. you could create such a db with just information from the students in the applicable classes.. then just update the db every semester (or whenever).. this will also keep old students from getting access after they should be gone..

that way you could keep anyone from getting themselves into trouble and potentially causing you headaches..
 
Old 02-21-2006, 05:42 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, you'd only need to give Apache sudo to run your wrapper script, which would then run other utils as needed.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Web Based groupware Dankles Linux - General 2 01-13-2006 11:06 AM
Free web-based email account - yourname@linuxquestions.net jeremy LQ Suggestions & Feedback 16 04-10-2005 12:57 PM
automatic user account creation in mail server kar11 Linux - Software 0 04-13-2004 11:55 PM
Linux and Web Based Email rioch Linux - General 3 10-01-2003 09:52 PM
Web-Based E-mail for Linux RedHatMN Linux - Newbie 4 08-29-2001 11:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:40 AM.

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