August 11th, 2002, 07:50 PM
create and modify ftp accounts/permissions w/php? big project
i looked in the php manual at the different ftp functions, but i didn't find anything about creating and deleting ftp accounts, and modifying permissions.
i am running a copy of apache w/php and mysql, and i will soon be running an ftp server as well.
~~!! ----what i want to do is have a php script that allows people to create an account on my http site to enter the 'ftp manager' section of the site, where once they login they can create an immediately-available ftp account. I want the script to create a directory for their account, and set the permissions i specify. Also, i want to let them delete their ftp account.
i have not yet chosen an ftp server, though i was leaning towards bulletproof ftp. if it is possible to do this automatic account creation thing only with a specific ftp server, then i am willing to use that particular one. but only if that's necessary.
anyone know if what i want to do is possible and how? (the bold part is what i need help with) - thanks so much for any input, i really really appreciate it.
August 12th, 2002, 06:30 AM
First things first - why g6? It's not all that great, even for windows world. Try checking out either servu or raidenftpd.
Then, as you see I don't like bpftpd too much so I can't speak for it, but on ones that I did use and ones that didn't have cli there was usual .ini file (or .conf) with user info in them, so you'll have to make php script to edit that file and insert needed info. Problem is that pass'es are already encoded, so you'll have to find out which algorithm your ftpd uses and get a proggie to encode passwords for you before inserting them into file.
Making folders is easier - just use mkdir(). Although by what I see so far, you're trying to run host-like server on windows, which I would not recommend. And chmod won't work there either.
And you know I mean that.
August 12th, 2002, 09:25 AM
well i am going to be running win2k server on a spare computer, that's what i'll be using for my new server. i'm more comfortable with win2k than linux, unix, etc.
i'm gonna download every ftp server i can get my hands on today, and check em out to see if they have a way of editing the .ini file like you said, or if there are any other options of doing this.
has anyone ever done this kinda thing? got any advice?