Cannot upload custom image: Errno 13 - Permission denied

Hi, Billwear.

Thanks so much for your suggestion.

you might try moving the image to the home directory for the owning user?

It actually is in the owner home dir!
The image I was playing with is chmod 666 (readable and writable by everyone), so there should be no reason (apparently) for root to fail due to a “permission denied” error.

Anyway you pointed me to the right direction. After your post I started reasoning about file ownership. So I tried to run maas-cli as the user owner of the image (not as root) and this time the image start loading. Now I am blocked because of a file-system full, but this is another story.

I learned that:

  • maas-cli commands could be run by any user that is able log into MaaS as admin, not just root
  • for some reason I cannot tell, it is required to run the “maas admin boot-resources create ...” command as the user owner of the image file to upload, does not matter what permission had the file

Is it right?

Regards, )+(auloop

P.S.: in my examples I used “maas admin ...” since admin is the only profile defined in my lab, but probably it should not make difference if working with any other profile

1 Like