ISPConfig 3

Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
Tasklist

FS#1226 - FTP Site without web site / FTP subdir acces

Attached to Project: ISPConfig 3
Opened by kinai (kinai) - Tuesday, 22 June 2010, 05:59 GMT
Task Type Feature Request
Category Backend / Core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 3.0.2.2
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No

Details

Hi,

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

Comment by henry clifford (hcliff) - Thursday, 15 July 2010, 14:14 GMT
Yes this can be done, but it's a pretty major hack.

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!

Loading...