Re: mount permissions
On 23/07/2024 14:40, Eben King wrote:
And after I issue this command:
root@cerberus:~# sshfs -o default_permissions
sshd@white_mycloud:/mnt/HD/HD_a2/Public /mnt/white_mycloud/
sshd@white_mycloud's password:
By the prompt (and the behavior below) I assume you're mounting as root.
it looks like this to me:
eben@cerberus:~$ \ls -l /mnt
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
and to root:
root@cerberus:~# ls -l /mnt/
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
eduardo@kalinowski.com.br
Reply to: