stepping-stone / node-integration

The FOSS-Cloud's node configuration scripts
Other
0 stars 0 forks source link

Wrong permission of /var/virtualization after fresh install #11

Open dev-zero opened 10 years ago

dev-zero commented 10 years ago

Current:

vm-test-02 # ls -la /var/virtualization/
total 12
drwxrws--- 11 root root       4096 24. Dez 15:51 .
drwxr-xr-x 12 root root       4096 24. Dez 11:28 ..

Required:

vm-node-01 # ls -la /var/virtualization/
total 8
drwxrws---  2 root vm-storage 4096 12. Nov 11:50 .
drwxr-xr-x 13 root root       4096 21. Aug 15:07 ..

The predefined-storage.tar.bz2 archive has it correct:

vm-test-02 tmp # mkdir foo
vm-test-02 tmp # tar -xvjpf /usr/share/foss-cloud/predefined-storage.tar.bz2 -C foo/
./
./iso/
./iso/85d7e9f5-4288-4a3f-b209-c12ff11c61f3.iso
./iso-choosable/
./vm-dynamic/
./vm-dynamic/c92851ab-ec8e-4eba-b60d-96cf3f72fd02/
./vm-persistent/
./vm-persistent/0f83f084-8080-413e-b558-b678e504836e/
./vm-templates/
./vm-templates/5b77d2f6-061f-410c-8ee7-9e61da6f1927/
./tmp/
./tmp/apache-php-uploads/
vm-test-02 tmp # ls -lisa foo/
total 0
 2129122 0 drwxrws--- 8 root vm-storage 102 27. Mär 2013  .
12583127 0 drwxrwxrwt 5 root root        61  9. Jan 09:51 ..
 4232703 0 drwxrws--- 2 root vm-storage  53 27. Mär 2013  iso
 6316907 0 drwxrws--- 2 root vm-storage   6 27. Mär 2013  iso-choosable
 4232705 0 drwxr-sr-x 3 root vm-storage  31 27. Mär 2013  tmp
 8457643 0 drwxrws--- 3 root vm-storage  49 27. Mär 2013  vm-dynamic
12619674 0 drwxrws--- 3 root vm-storage  49 27. Mär 2013  vm-persistent
   56195 0 drwxrws--- 3 root vm-storage  49 27. Mär 2013  vm-templates

So there must be a script which resets the permissions at some point