Page 1 of 1

setting individual ftp passwords on a server

Posted: Tue Jun 15, 2004 3:19 pm
by snpo123
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?

Posted: Tue Jun 15, 2004 3:29 pm
by d3ad1ysp0rk
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.

Posted: Tue Jun 15, 2004 3:33 pm
by snpo123
The best and easiest way to do it, is to have them all connect directory to mysite.com


Did you mean directly?
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.
How and where would I configure it? Isnt there a way to set special privlages for a certian folder? (in this example /user1/)

Posted: Tue Jun 15, 2004 3:42 pm
by d3ad1ysp0rk
Yes, typo :P

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