PHP linux user setup form
Posted: Thu Nov 06, 2003 5:19 am
Hi all
Im having a problem tryin 2 setup linux user accounts on my linux server.
What i want to do is create a form that creates a new user account on my linux box, with the username that they specify, then ill email them with the password. For example:-
First Name : Joe
last name : Bloggs
Email Address : joe_bloggs@domain.com
Username : Joe_bloggs
Those are just the basic fields i would use.
But once the user clicks submit, i need the linux server to execute the following commands:-
adduser joe_bloggs
chmod 777 /home/joe_bloggs
mkdir /home/joe_bloggs/public_html
chmod 777 /home/joe_bloggs/public_html
Then when that has created the account the user is displayed the message:-
"Thankyou for using briskfire.com your account has been created and your password will be emailed to you within 24 hours"
Then when i have made the changes i need to their account set password, permissions ect then i will email them with the password.
I need it to be secure as well, i dont want my server to be hacked.
Thanks i appriciate it.
Im having a problem tryin 2 setup linux user accounts on my linux server.
What i want to do is create a form that creates a new user account on my linux box, with the username that they specify, then ill email them with the password. For example:-
First Name : Joe
last name : Bloggs
Email Address : joe_bloggs@domain.com
Username : Joe_bloggs
Those are just the basic fields i would use.
But once the user clicks submit, i need the linux server to execute the following commands:-
adduser joe_bloggs
chmod 777 /home/joe_bloggs
mkdir /home/joe_bloggs/public_html
chmod 777 /home/joe_bloggs/public_html
Then when that has created the account the user is displayed the message:-
"Thankyou for using briskfire.com your account has been created and your password will be emailed to you within 24 hours"
Then when i have made the changes i need to their account set password, permissions ect then i will email them with the password.
I need it to be secure as well, i dont want my server to be hacked.
Thanks i appriciate it.