FTP user can see not only their home directory??

5 posts / 0 new
Last post
#1 Wed, 07/20/2016 - 10:52
shenkwen

FTP user can see not only their home directory??

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?

Wed, 07/20/2016 - 14:21
Diabolico
Diabolico's picture

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.

Thu, 07/21/2016 - 18:45
unborn
unborn's picture

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

Fri, 07/22/2016 - 05:09
Diabolico
Diabolico's picture

Just add DefaultRoot ~ or DefaultRoot ~ !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.

Fri, 07/22/2016 - 14:07
shenkwen

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.

Topic locked