NuCivic / ansible-dev-vm

8 stars 5 forks source link

Can't delete DKAN webroot from inside VM #40

Closed dafeder closed 8 years ago

dafeder commented 9 years ago

I'm not sure if this is problem with the VM exactly, but deleting the built webroot of a DKAN instance seems to be impossible inside the VM, on both virtualbox and vmware:

vagrant@local:/var/www/dkan$ sudo rm -rf webroot
rm: cannot remove ‘webroot/sites/default/default.settings.php’: Permission denied
rm: cannot remove ‘webroot/sites/default/files’: Permission denied
rm: cannot remove ‘webroot/sites/default/settings.php’: Permission denied
vagrant@local:/var/www/dkan$

I need to rm it as sudo from my mac to get rid of it.

acouch commented 9 years ago

I think this is a quirk with the NSF mount.

You can fix this inside the vm by chmod 777 webroot/sites/default and then rm

Not sure if there is a better solution.

frankcarey commented 8 years ago

It's not just NFS, the Drupal installer changes these permissions, requiring a chmod before removing (even with sudo rm -rf) The new ahoy script automatically does this for you when rebuilding drupal, so marking this fixed.