sshfs, linux - how to mount with read-only access [closed]

余生长醉 提交于 2020-08-07 05:28:32

问题


I need to mount other server via sshfs with read-only mode. My OS is Linux (Ubuntu). Is it possible to do that?

My command used with that connection is:

sudo sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other

After running that I have write-access. I need to have read-only. Please help.


回答1:


just add one more option: sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other -o ro . this should help: http://ubuntuforums.org/showthread.php?t=975107



来源:https://stackoverflow.com/questions/35830509/sshfs-linux-how-to-mount-with-read-only-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!