Permissions on files created in VM


Recommended Posts

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.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.