FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 11th, 2002, 06:50 PM
pixalone pixalone is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 8 pixalone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old August 12th, 2002, 05:30 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
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.

Reply With Quote
  #3  
Old August 12th, 2002, 08:25 AM
pixalone pixalone is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 8 pixalone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > create and modify ftp accounts/permissions w/php? big project


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT