Share permissions/ownerships seem useless
Posted: 27. Nov 2019, 16:12
Ubuntu host, ubuntu client, VirtualBox 6.0.14
I was finally able to create a share and look into it. (I finally realized that the share must be mounted by/within the guest; simply creating the share doesn't do this.)
The problem is, on the guest it belongs to root (group root) and thus I can't create files in it, not without going through the entire directory structure and changing permissions to 777 (oddly enough that works even without doing sudo!). Sudo chown and sudo chgrp do not change the ownership of the shared folder.
Furthermore any new document I create on the host within the share ends up with 664 permissions on the guest, and I have to do a chmod on it on the guest.
This is going to become quite tiresome. Is there some way to do this so that the user on the guest machine actually CAN write to a writeable share without going through this rigamarole?
I was finally able to create a share and look into it. (I finally realized that the share must be mounted by/within the guest; simply creating the share doesn't do this.)
The problem is, on the guest it belongs to root (group root) and thus I can't create files in it, not without going through the entire directory structure and changing permissions to 777 (oddly enough that works even without doing sudo!). Sudo chown and sudo chgrp do not change the ownership of the shared folder.
Furthermore any new document I create on the host within the share ends up with 664 permissions on the guest, and I have to do a chmod on it on the guest.
This is going to become quite tiresome. Is there some way to do this so that the user on the guest machine actually CAN write to a writeable share without going through this rigamarole?