Creating a new account
I am creating a script that will automatically go through the process of creating an account, setting up a subdomain and everything else needed to allow the user to have a website.
But I am stuck on the most important part of the script: How can I create a new user account INSIDE my perl script?
It will be for Redhat 6.0 if that helps.
Thanks
------------------
Recycling one glass jar, saves enough energy to watch T.V for 3 hours.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
roBofh posted this at 23:19 — 1st March 2000.
They have: 122 posts
Joined: Jun 2000
The thing you most want to be careful with here is security. if you're not careful, your machine will get compromised. with red hat, there is the 'adduser' command, which you could use if you were running privelaged. OTOH, you could fudge around with permissions and groups, so that /etc/passwd, /etc/shadow, /etc/httpd/conf/httpd.conf, and whatever other files, are all writeable by whatever group you set the cgi to run as. A much better alternative, IMHO, is to setup a system where your script adds the entries into a queue that you can easily check over for problems, and approve those as root or a priveleged user.
Rob Radez
OSInvestor.com
Orpheus posted this at 23:15 — 8th March 2000.
They have: 568 posts
Joined: Nov 1999
Where is your web site Robp?
Rob Pengelly posted this at 01:09 — 9th March 2000.
They have: 850 posts
Joined: Jul 1999
I don't really have one as of yet, I am just starting to play around with linux and apache on an old computer (which doesn't have internet access yet) to get the hang of things.
------------------
Recycling one glass jar, saves enough energy to watch T.V for 3 hours.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Orpheus posted this at 03:13 — 9th March 2000.
They have: 568 posts
Joined: Nov 1999
I did the same thing a few months ago.
I have an old 486 in my basement i put it on. Still having trouble with X though. But I could live in the shell if I had to.When you get it up post a message here. I'd like to see it.
------------------
Web Site: http://www.perlshell.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.