{"id":105,"date":"2025-07-23T22:17:17","date_gmt":"2025-07-23T22:17:17","guid":{"rendered":"https:\/\/10.0.0.42\/?p=105"},"modified":"2025-07-23T22:17:18","modified_gmt":"2025-07-23T22:17:18","slug":"container-permissions-on-proxmox-when-somebody-else-made-it-and-you-uploaded-it-the-caveman-way","status":"publish","type":"post","link":"https:\/\/www.nuclearwaffle.com\/?p=105","title":{"rendered":"Container permissions on Proxmox when somebody else made it and you uploaded it the caveman way"},"content":{"rendered":"\n<p>So you&#8217;re running Proxmox and you have storage for the node on an NFS share somewhere. When you get a container or VM from somewhere else and upload it, lazy style like me, it might end up with the wrong ownership if you do it like this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make an NFS share just for Proxmox on the NAS, and don&#8217;t bother to also map it on your PC so you can upload to it directly. <\/li>\n\n\n\n<li>Take the lazy way out and put the VM or container somewhere you do have mapped (like a generic media folder) and then use the TrueNAS shell to move it over to where Proxmox can see it.<\/li>\n\n\n\n<li>The shell will set ownership to whoever you&#8217;ve logged in as, and probably not the owner you want.<\/li>\n<\/ol>\n\n\n\n<p>The result is the Proxmox backup utility will be trying to chown files in a container which <em>itself<\/em> doesn&#8217;t have the right ownership to allow it. Rsync will blow up with error 22 and your backup will die.<\/p>\n\n\n\n<p>The fix? Go into the NAS, go to that file, and chown it to the right user. It&#8217;s probably whichever owner:group has the other files which do back up correctly, not whatever user you DECIDED randomly to use for the move operation.<\/p>\n\n\n\n<p>For a folder with the image in it:<\/p>\n\n\n\n<p>chown -R user:group <em>folder name<\/em><\/p>\n\n\n\n<p>This will change ownership of the folder (200, in this case) and the actual image.<br>Now test backups, it&#8217;ll probably work.<br>And you probably won&#8217;t map that share to make it easier next time, because why would you. Nobody ever gives you containers to run, and you shouldn&#8217;t even if they did because you can&#8217;t know what&#8217;s in them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you&#8217;re running Proxmox and you have storage for the node on an NFS share somewhere. When you get a container or VM from somewhere else and upload it, lazy style like me, it might end up with the wrong ownership if you do it like this: The result is the Proxmox backup utility will&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":1,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nuclearwaffle.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}