I have a 'company official' folder which contains a large number of subdirectories, and which internal users may add new folders to over time.
I don't want clients to see all these folders, so I set up an empty directory called 'null', and mapped that to a virtual company folder:
/opt/wftpserver/FTP_DATA/null/ --> /Company_Official [ permissions R L ]
I then added one subfolder:
/opt/wftpserver/FTP_DATA/Company_Official/Utils/ --> /Company_Official/Utilities [ permissions R L ]
This all seems to work correctly in the web interface.
When I access this via an SFTP client, it appears that Wing FTP is sending a full path for the second virtual folder.
For example, if I use a command line client:
Code: Select all
C:\Program Files (x86)\WinSCP>WinSCP.com
winscp> open sftp.company.com
Searching for host...
Connecting to host...
Authenticating...
Username: client1
Password:
Authenticated.
Starting the session...
Session started.
Active session: [1] sftp.company.com
winscp> ls
drwxr-xr-x 2 root root 4096 Feb 2 11:03:33 2018 /Company_Official
D--------- 0 0 ..
winscp> cd /Company_Official
/Company_Official
winscp> ls
drwxr-xr-x 23 root root 4096 Sep 27 17:08:08 2016 /Company_Official/Utilities
D--------- 0 0 ..
winscp>
How do I set this up so that it is less confusing for users? Normal directories show correctly, it just seems to be virtual mappings which are the problem.