goofys
goofys copied to clipboard
Directory mounted as user x can't be stat by root
Thanks for this software, so much more practical than s3fs-fuse
!
Demonstration of the problem:
[x@server]$ uname -a
Linux 157007.local 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[x@server]$ /usr/bin/goofys --uid 1002 --gid 1002 --endpoint https://storage.yandexcloud.net --region ru-central1 --cheap --profile bucketname:/bucket-path /mnt/bucket-path
[x@server]$ ls -al /mnt
total 16
drwxr-xr-x. 4 root root 4096 May 16 23:08 .
dr-xr-xr-x. 18 root root 4096 Jan 23 12:15 ..
drwxr-xr-x 2 root root 4096 Oct 17 2020 disk2
drwxr-xr-x 2 x x 4096 May 17 10:37 bucket-path
[x@server]$ su root -
[root@server]# ls -al
ls: cannot access /mnt/bucket-path: Transport endpoint is not connected
total 12
drwxr-xr-x. 4 root root 4096 May 16 23:08 .
dr-xr-xr-x. 18 root root 4096 Jan 23 12:15 ..
drwxr-xr-x 2 root root 4096 Oct 17 2020 disk2
d?????????? ? ? ? ? ? bucket-path
was there any logs in syslog? Or try running goofys in -f
foreground and redirect log to a file
@kahing No log when running with -f
as user x and then ls -al
in parent directory as root
Well, actually just the usual:
2021/07/13 10:32:19.401340 main.INFO File system has been successfully mounted.