Discussion:
mount permissions
(too old to reply)
Eduardo M KALINOWSKI
2024-07-23 17:50:01 UTC
Permalink
By the prompt (and the behavior below) I assume you're mounting as root.
ls: cannot access '/mnt/white_mycloud': Permission denied
total 12
drwxr-xr-x 2 root root 4096 Mar 11 23:39 server
drwxr-xr-x 2 root root 4096 Mar  4 14:37 temp
drwxr-xr-x 2 root root 4096 Mar  7 14:02 temp2
d????????? ? ?    ?       ?            ? white_mycloud
total 16
drwxr-xr-x 2 root root 4096 Mar 11 23:39 server
drwxr-xr-x 2 root root 4096 Mar  4 14:37 temp
drwxr-xr-x 2 root root 4096 Mar  7 14:02 temp2
drwxrwxr-x 1 root eben 4096 Jul 23 11:35 white_mycloud
What's going on here, and how do I fix it?
As described on the sshfs manpage, by default only the mounting user
(root, in your case) can access the filesystem.

You can use -o allow_other to allow other users. Or, if it's only eben
that'll be accessing, run sshfs as eben.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Eduardo M KALINOWSKI
***@kalinowski.com.br
Michael Kjörling
2024-07-23 22:00:01 UTC
Permalink
As described on the sshfs manpage, by default only the mounting user (root,
in your case) can access the filesystem.
You can use -o allow_other to allow other users. Or, if it's only eben
that'll be accessing, run sshfs as eben.
This is also common behavior with FUSE file systems in general. Slight
extra prodding is required for a FUSE mounted file system to be
accessible to any user (including root) other than the one who mounted it.
--
Michael Kjörling 🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”
Loading...