corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Maybe Ian or Tim will know this, but anyone else too... » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

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!)

then theres security issues but I'm not going into that.


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:
Originally posted by Ian
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.

I dare say such a script exists - you tried DevShed?


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 :(
Good luck tho!


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.

I dare say such a script exists - you tried DevShed?


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...

Simple way of explaining...

User visits site & registers
Once registered, PHP Script creates a user account on the UNIX webserver (with a default group setting for quota management & so on), creates a folder called public_html in there home directory (/home/username/public_html) and configures it all so they can FTP into the server with there username/password to upload files...