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

1

17

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 [email protected]:/home/user /media/mountpoint/ -o allow_other

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

Intine answered 6/3, 2016 at 18:7 Comment(1)
Not a programming question, belongs to SuperUser or Unix&LinuxUlpian
W
32

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

Wreck answered 6/3, 2016 at 18:18 Comment(1)
one can also chain the options with comma: -o idmap=user,ro,allow_otherComminute

© 2022 - 2024 — McMap. All rights reserved.