{"id":813,"date":"2011-09-30T01:31:36","date_gmt":"2011-09-30T00:31:36","guid":{"rendered":"http:\/\/www.gennard.net\/blog\/?p=813"},"modified":"2011-09-30T01:31:36","modified_gmt":"2011-09-30T00:31:36","slug":"permission-denied-rsync","status":"publish","type":"post","link":"http:\/\/www.gennard.net\/blog\/2011\/09\/permission-denied-rsync\/","title":{"rendered":"rsync &#038; permission denied\/operation not permitted &#038; arch linux"},"content":{"rendered":"<p>I use rsync to sync directories between machines but one of my machines kept screwing up the permissions, I finally get time to track the &#8220;Operation not permitted&#8221; issue and it turned out to my vfat backup drive not being mounted under the right uid.<\/p>\n<p>Coming from the old school Unix background, I thought updating \/etc\/fstab would be enough but due to this auto mount system it is done differently \ud83d\ude09 &#8230;<\/p>\n<p>It turns out you need to change the rules for the auto mount via file \/etc\/udev\/rules.d\/11-media-by-label-auto-mount.rules<\/p>\n<p>So what did I need to change?  Well it turned out to be simple uid= to match the uid of my normal user (use id xxx, where xxx is your username)<\/p>\n<p>Below are the changes:<\/p>\n<pre>\nACTION==\"add\", ENV{ID_FS_TYPE}==\"vfat|ntfs\", \nENV{mount_options}=\"$env{mount_options},utf8,\n<b>uid=501,<\/b>gid=100,umask=002\"\n<\/pre>\n<p>[ad#Google Adsense-1]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use rsync to sync directories between machines but one of my machines kept screwing up the permissions, I finally get time to track the &#8220;Operation not permitted&#8221; issue and it turned out to my vfat backup drive not being &hellip; <a href=\"http:\/\/www.gennard.net\/blog\/2011\/09\/permission-denied-rsync\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,27,32],"tags":[61,143,153,158,224,181,186],"_links":{"self":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts\/813"}],"collection":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/comments?post=813"}],"version-history":[{"count":0,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/posts\/813\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/media?parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/categories?post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gennard.net\/blog\/wp-json\/wp\/v2\/tags?post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}