|
Not logged in [Login - Register] |
You Are Not Registered Or Not Logged In |
Corsa Sport » Message Board » Off Day » Geek Day » Maybe Ian or Tim will know this, but anyone else too... » Post Reply
|
Trucido |
posted on 16th Dec 03 at 19:50 |
to be honest if you have it on a form you will get spammed by some git...its best to set up a form that either e-mails you or lists on the site in a aadmin area then you can verify it and create it yourself | |
willay |
posted on 16th Dec 03 at 19:47 |
uh if you have root on the machine the script could add users to the system but not give them a working shell so they cannot login, but still have ftp access by the stock ftpd, webspace via apache (IIRC theres a setting so in each user home area, if it has a public_html or simular then it links to www.website.com/~username or kinda leike that, hard to explain!) | |
PaulW |
posted on 16th Dec 03 at 18:41 |
hmmm tru cos then when they ftp in, it just lists what they got permission to view, so they canae mess about | |
Ian |
posted on 16th Dec 03 at 18:37 |
One problem you might have with creation of the directories isn't mode, its ownership. The web server process will definately be able to chmod stuff its created but you really want a chown so its consistent with ftp user, not just owned by web server process and wide open. | |
PaulW |
posted on 16th Dec 03 at 18:29 |
quote: folders & so-on will be pre-defined so the script just copies whats what to the new user home folder, as for permissions, could I not just call chmod from within the script or set it within the guid? | |
BabyBlade |
posted on 16th Dec 03 at 18:20 |
My heads hurting now ive read all that :( | |
Ian |
posted on 16th Dec 03 at 18:13 |
I *think* thats as difficult as manually writing lines in each appropriate config file, as well as setting up the appropriate folders etc. and changing permissions on them. All fairly simply file handling or system call stuff although I'd have to do some homework on exactly what's required to write one. | |
PaulW |
posted on 16th Dec 03 at 17:57 |
I'm after a PHP-Script or similiar to run on a unix web server, which lets people sign up for free hosting on the server, so when they sign up & stuff, the script then adds a user to the system, so they have there own little space like at like www.myhostserver.com/~username (as will be configured using apache... |