I have an Ubuntu 18.04 system running and want to access this system using SFTP. I have a lot of users, that shall access /var/ftp/data/%u, additionally, I need a user f_sftp, that can access and read /var/ftp/ including all sub directories.
- All folders and subfolders are in ownership root:root with chmod 755.
- In this status I can read all data, but I cannot upload anything.
- If I change the ownership; e.g. to root:f_user (root is member of f_user), I can't connect with any of my accounts (even though they are member of f_user).
- If I change the mode, e.g. to 777, I cannot connect via SFTP due to wrong mode or ownership.
Can someone tell me, what is the correct configuration here so that SFTP works and my users can partly read and partly read&write?