Microsoft office documetns and Samaba shares

I am giving Ubuntu a shot Ubuntu over Windows, but I have a windows VM set up using VM manager for Windows stuff that I don’t feel like finding workarounds for.

I have a second internal drive with essentially 2 partitions one as NTFS (from a Windows install), the second is ext4.

I have shared the NTFS partition with the windows 10 VM with samba and it mostly seems to work except for Microsoft office documents I just get an error.

It is more or less the same with every MS Office document i.e. with Word, Powerpoint, and Excel.

I thought it was my permissions but in files on the ubuntu host, it says the owner is the root, just like the other samba share that is on my boot drive, which also does not allow me to open my MS Office documents.

And I know the file are fine because restarting into windows and opening the documents is has no issues, I’m aware of some security and authentication stuff going on behind the scenes but I’m just not really sure what the solution is.

Ideally, I could easily and securely restrict full access to the ubuntu host the Windows VM, and my Phone but this is uncharted territory so I’m not really sure what the best way to go about that would be because one of the users is on a separate device.

But for now, I just want to make sure that between the two Installs (host and VM) I have more or less seamless file sharing and access.

Any advice would be greatly appreciated.


Fixed by creatin users and loging in with the privlages I want.

This is most likely a permissions issue due to the VM wanting to create the temp save files. You may need to setup a MASK on the samba share to allow new files to automagically be created with default permissions that are permissible on your share.

Either that or setup Samba AD to allow domain authentication with files and devices.

1 Like

Yup, all permissions.
Have smb share on home network, best have admin users with full access to folders/files in share.
Guest will work but will get errors as you’ve shown.

smb conf file sample for all access guest:

[global]
workgroup = WORKGROUP
server string = Samba Server
netbios name = Home
security = user
map to guest = bad user
dns proxy = no
hosts allow = 192.168../24
interfaces = 192.168../24

[Public]
path = /media/NetShare
browsable =yes
writable = yes
guest ok = yes
read only = no
create mask = 644

1 Like