I am trying to mount a directory over ssh from a server. I mount with the below command while root.
Code:
sshfs -o allow_other admin@<hostip>:/data/home /home/ldapusers
It mounts fine and with the -o allow_others the other users on the system cd into the mounted dir structure and read files just fine. The part I cant understand is that even in the directories that are owned by regular users they are not able to write anything.
For example in the folder /home/ldapusers/user1 (I replaced the user name for privacy reasons). ls gives this output for that folder:
Code:
drwxr-xr-x. 1 user1 unix_admin 4.0K Aug 18 16:43 user1
When I am inside that folder and logged in as user1 I cannot write anything. For example:
Code:
-bash-4.1$ touch foo
touch: cannot touch `foo': Permission denied
Because user1 is an ldap user I verified that user1's uid number was the same as the owner of that folder, just in case there was a uid mismatch. Also I am running centos 6 on both client and server if that matters. I am at a loss for why this is happening. It appears to me that the user should be able to access a folder they own and have full perms on. Is this because sshfs is a userspace file system?