I have a user "devuser" which when I log in via SSH can view all files. Specifically /var/www folders, there are 2 folders testsite mainsite. But when logging in via SSH using FTP in WinSCP application I can not view files owned by www-data. So I can see mainsite but not testsite. It seems as if my user permissions using ftp are different somehow.
I have tried adding my user "devuser" to the www-data group even after a server restart my user is not able to view the folder "testsite".
I'm using Debian 8 & Nginx to serve web pages.
If I have not provided enough info I apologise in advance, please let me know what to provide.
ls -la in
www folder shows:
drwxrwsr-x 4 root root 4096 Sep 27 21:20 . drwxr-xr-x 12 root root 4096 Sep 27 21:20 .. drwxrwsr-x 8 www-data www-data 4096 Sep 27 21:20 testsite drwxrwsr-x 2 root root 4096 Sep 27 21:20 mainsite