{"id":1630,"date":"2021-08-08T10:33:19","date_gmt":"2021-08-08T15:33:19","guid":{"rendered":"https:\/\/www.familytidings.com\/blog\/?p=1630"},"modified":"2021-08-08T10:37:15","modified_gmt":"2021-08-08T15:37:15","slug":"ubuntu-20-04-nas-permission-denied","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1630","title":{"rendered":"Ubuntu 20.04 NAS permission denied"},"content":{"rendered":"\n<p>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 <code>forceuid<\/code> and <code>forcegid<\/code> to the mount options in the autofs configuration file.  After that, run<br><code>sudo service autofs restart<\/code><br>Verify the force options have been applied by accessing the mounted directory (to force automounting), then checking the output of <code>mount<\/code> and <code>ls -l<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1630","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1630"}],"version-history":[{"count":3,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1630\/revisions"}],"predecessor-version":[{"id":1636,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1630\/revisions\/1636"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}