Im trying to create new user called svecias and give him permission to connect via SFTP only to existing directory and deeper (/usr/share/nginx/itsupply). Currently directory is owned by nginx in group nginx. How can I give new user access to this directory (without disabling access to this dir for nginx)? I tried adding newly created user to group nginx, but when Im trying to connect with credentials, Im still getting prompt to enter password (I guess user still doesnt have permission for his home directory).
cat /etc/passwd | grep svecias
gives me this result:
So this user has its home directory set as needed one.
before I did
usermod -a -G nginx svecias usermod -g nginx svecias