These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for FTP user can see not only their home directory?? on the new forum.
I am trying to create a FTP user under "edit users" panel, I set the home directory to be "website subdirectory: medias/ ". When I test login with this new user, the default folder is medias/, however, it can go up to the "public_html" folder and can even modify its files. This is clearly not right.
How can I set medias/ as this new user's root folder?
Little tired here so my brain is not at 100% but one thing what comes in my mind is because of group permission, e.g. domain user and subdomain user are part of the same group [permission]. Another thing could be "ProFTPD virtual FTP". Check if you have this enabled with that virtual server and turn it off (uncheck). Either way you dont need this option aside for anonymous FTP and i'm pretty sure you are not using it. Last but not least, check again what is default directory for subdomain user.
- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.
hi, there is function to lock down to users home.. you need to enable this in proftpd setting in webmin > proftpd
Configuring/troubleshooting Debian servers is always great fun
Just add
DefaultRoot ~
orDefaultRoot ~ !adm
somewhere near the top in proftpd.conf. Personally i'm using second option but you can test both of them.- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.
Thanks. I am not very comfortable with command lines, but with you guys' hint, I was able to do it by editting proFTPD server setting in the GUI.