I seem to be having an issue with the way files are transferred from my Ubuntu VM to the user share. While making the VM I set the map for /mnt/users to mount to /mnt/Array on the VM. I then setup my fstab as such.
Array /mnt/Array 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0
What I end up getting on the user share is files owned by root as that is the user on the VM.
-rw-rw-rw- 1 root root 851252652 Dec 11 18:55 Camera.Feed.121118.mpeg
To correct this I have been running a crontab under unraid every night that runs chown -R nobody:users and chmod -R 777 to get permissions back so samba users and unraid can make changes to the files. Is there a better way to accomplish this?
Thanks.