I'm running CentOS 6.9.
I'd like to add SFTP users that can access certain directories. For one of them, I'd like them to be able to access everything (with SFTP permissions only and no shell access).
So far I added them:
adduser username passwd username
... entered password.
Then I edited
Match User username ForceCommand internal-sftp PasswordAuthentication yes ChrootDirectory / AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no
Now, all the other instructions I see are to use
chown for this user. BUT, I don't want to change ownership of the entire directory to this user. I just want this user to be able to access the entire directory without affecting the ownership permissions of any other users.
How can I do this?