Permission denied when running snap in bind mount NFS home with root squash enabled

Hello,

We have a NFS mount with root squash enabled and some of our users have their home on the NFS drive bind mount in /home.

For an unknown reason, we are unable to execute snaps (e.g. aws-cli) when PWD is their home folder (e.g. /home/<user>/). Running snaps in any other folder works (e.g. /home/<users>/other_folder/).

The error returned is cannot open path of the current working directory: Permission denied. The folder ~/snap is always created, even when the error is emitted. Deactivating root squashing resolves the issue.

I’m running snapd 2.63.

Thanks

This issue looks like Bug #1973321 “snaps don't start when current working directory i...” : Bugs : snapd but this bug should also prevent commands from working in home subfolders which is not the case…

This is a known issue. We have some early tests that show it happens and misbehaves and some work in progress to address it but nothing we can promise in the next few weeks.

1 Like

is there a dedicated topic or bug I could follow to see progress made on this ?

Thanks