Ubuntu 20.04 NAS permission denied
On a new installation of Ubuntu 20.04, NAS mounts were readable, but not writable. When looking at the long directory listing, the files were owned by a UID and GID different than the user they were mounted for. The fix for this was to add forceuid
and forcegid
to the mount options in the autofs configuration file. After that, runsudo service autofs restart
Verify the force options have been applied by accessing the mounted directory (to force automounting), then checking the output of mount
and ls -l
.