setting individual ftp passwords on a server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

setting individual ftp passwords on a server

Post 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?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post 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.
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

Post 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/)
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

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