I need to mount a share using sshfs.
When I mount it using sshfs directly, i.e.
# sshfs [email protected]:/home/data/ -o allow_other /mnt/data/ or
# sshfs [email protected]:/home/data/ -o allow_other,default_permissions /mnt/data/ the share is mounted, but only in "read-only" mode. However when I add following line into /etc/fstab, and do mount /mnt/data, then the share is mounted read-write.
# [email protected]:/home/data/ /mnt/data fuse.sshfs noauto,_netdev,allow_other,default_permissions 0 0 Both commands are issued unde root. Why does sshfs from the command line mount the filesystem read-only?
How can I mount it read-write using the sshfs command?
read-onlyalso forrootor only members of theusersgroup?read-onlyfor root as well.grep /mnt/data /proc/mountsandtouch /mnt/data/foowhile it's mounted read-only. Also copy-paste the messages from the system logs at the time of mounting and (if there are any) at the time of the write attempt.