setting individual ftp passwords on a server
Moderator: General Moderators
setting individual ftp passwords on a server
Hey, I was wondering, if I have a website, say http://www.mysite.com, and I want to let people create their own account on it, and make their own website like http://www.mysite.com/user1, how do I set a password for that specific directory so that the user can ftp their files? I want them to be able to go to ftp://www.mysite.com/user1 and type in their username and password so that they can ftp their files there and only in that directory. Is there a way to do this? If so, how?
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
The best and easiest way to do it, is to have them all connect directory to mysite.com (via a ftp client preferably, not a web browser), then have them enter their username/password, and then they only have access to their own directory (/username/), which can usually easily be setup in any decent FTP server configuration, meaning if it's for hosting for example, you should be able to edit the config file with PHP after creating the user.
The best and easiest way to do it, is to have them all connect directory to mysite.com
Did you mean directly?
How and where would I configure it? Isnt there a way to set special privlages for a certian folder? (in this example /user1/)which can usually easily be setup in any decent FTP server configuration, meaning if it's for hosting for example, you should be able to edit the config file with PHP after creating the user.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Yes, typo 
and I'm not exactly sure, but I'm thinking that depending on the FTP software, there should be a configuration file of some sort that automatically gets updated when you edit it via the software, but since you can't do that in PHP, I'm sure it wouldn't be hard to re-enact what happens when a user gets added in the program..
and I'm not exactly sure, but I'm thinking that depending on the FTP software, there should be a configuration file of some sort that automatically gets updated when you edit it via the software, but since you can't do that in PHP, I'm sure it wouldn't be hard to re-enact what happens when a user gets added in the program..