I use sshfs to mount a remote folder from another server to the local server. Mounting the remote folder works without a problem using the following command:
sshfs -o allow_other someServerFromSSHConfig:/home/data/somefolder/ /some/local/folder The problem is that I cannot change the owner of the files using chown (regardless of root permissions) I always get:
chown: changing ownership of ‘/somefolder/file.img’: Permission denied The user that accesses the folder is member of the fuse group. Even if I add additional mount options in sshfs to set the owner as userx:groupx I cannot change permissions using userx and using chown -R userx:groupx [...]
I expect to be able to set user permissions for files in mounted folders but this is not the case.
data, data owns the remote folder on the remote machine.chown. If not, this is expected behaviour. You can'tchownfile you don't have access.