Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
FS#1226 - FTP Site without web site / FTP subdir acces
|
DetailsHi,
At this time, we could only create a FTP access on a website directory. Possibility to create an ftp access that are not based on a website are a good feature. In addition, it could be nice to have possibility to create hierarchical acces like FOLDER1 <---- user1 only | |---- FOLDER2 <----- user1 and User2 | |---- FOLDER3 <----- user1 and User3 Regards, Kinai |
This task depends upon
First you'll need to rework the directory structure, see my post (at the bottom) here: http://bugtracker.ispconfig.org/index.php?do=details&task_id=674&only_watched=1&type[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=
set it up to follow structure /clients/[username]/[website_domain]
next up, you'll need to adjust the FTP creation system to be done by path instead of website, you'll need to modify a few files
/interface/lib/classes/validate_ftpuser.php http://pastebin.com/vHCmJs5f
- this confirms that the ftp directory selected is on the users path
\interface\web\sites\ftp_user_edit.php http://pastebin.com/ebGinKX2
- this changes other validations and saves the path
you'll also need to change the form for FTP to show the dir, instead of the dropdown for website (Easy)
you'll want to display the path instead of the website in the ftp user list so:
ftp_user_list.php http://pastebin.com/ARNDg3iw
Hope this helps!