Cannot refresh snaps if home is in NFS with root_squash
Bug #1804281 reported by
Santiago Castro
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Expired
|
Undecided
|
Unassigned |
Bug Description
"snap refresh" fails to execute if /home is in an NFS with the root_squash option (comes by default) because it tries to update the /home/*/snap directory using the root user, which doesn't have permissions because of the option.
It could be worked around with no_root_squash, but this is insecure.
To post a comment you must log in.
I've found that if I move /home/*/snap outside NFS and make it a symlink, refresh works. However, running the snap doesn't: "cannot create user data directory: /home/[ user]/snap/ [snap_name] /[version] : Not a directory"