Score:0

sshfs mount not shown correct inside docker container

us flag

We have a sshfs mounted on the host, that is also a volume inside a docker container.

  1. sshfs is called with gid+uidfile for correct mapping to www-data. That is what we need. This is working and looking good.

  2. Now we are going inside our container. The destination for the sshfs-mount inside the container is /var/www/html/data. If I do stat /var/www/html/data with user root everything is looking like expected.

File: data/ Size: 33 Blocks: 8 IO Block: 4096
directory Device: 2ch/44d Inode: 1 Links: 1 Access: (0770/drwxrwx---) Uid: ( 33/www-data) Gid: ( 33/www-data)

If I do the same as user www-data stat returns

stat: cannot stat '/var/www/html/data': Permission denied

ls -alh /var/www/html returns

d????????? ? ? ? ? ? data

Even though the permissions seem to be ok.

We are stuck at this point. Any hints would be welcome.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.