* [Virtio-fs] write permissions for Windows host on Linux guest
@ 2021-10-24 6:24 birnenkram
2021-10-24 6:40 ` birnenkram
2021-10-25 13:16 ` Vivek Goyal
0 siblings, 2 replies; 7+ messages in thread
From: birnenkram @ 2021-10-24 6:24 UTC (permalink / raw)
To: virtio-fs
Hello list,
thanks for a great project which will simplify my workflow a lot once I
get everything working.
I am trying to share a folder from an Ubuntu 20.04.3 host with a Windows
10 build 19042 (20H2) guest, using QEMU 5.2 / libvirt 7.0.0 on the host
and virtio-win 0.1.208 (driver 100.85.104.20800 and associated virtiofs
service) on the guest. I got the Windows drivers from
https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md
(stable virtio-win ISO).
So far I am able to read files in this host folder without problems from
the guest. However I can only create/write/delete files on the host if
I use a shell (Windows CMD or Cygwin bash) with *Administrator*
rights on the guest
OR
I change the folder permissions on the host, giving write
permissions to "other". Neither of these options is acceptable as a
permanent solution.
I already toyed with various settings for "user" in
/etc/libvirt/qemu.conf, including root and the user owning the shared
folder (myself), without success. I struggle to understand what
ultimately determines the write permissions on the host folder. I had
assumed this to be related to the UID of one of the hypervisor
processes, so I do not see why running as Administrator or not on the
guest should make a difference. Also, virtiofsd seems to be running as
root anyway, so should have the necessary permissions. There's no
SELinux on my system.
My Windows and Linux user names are different. I don't know if that
matters, and whether the software attempts to map the two (as Cygwin
does).
Do you have any ideas what the problem could be? I have seen various
users reporting issues with write permissions from Windows guests in the
recent past, but no solution which would solve the issue for me.
Best regards, Michael
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Virtio-fs] write permissions for Windows host on Linux guest
2021-10-24 6:24 [Virtio-fs] write permissions for Windows host on Linux guest birnenkram
@ 2021-10-24 6:40 ` birnenkram
2021-10-24 8:58 ` birnenkram
2021-10-25 13:16 ` Vivek Goyal
1 sibling, 1 reply; 7+ messages in thread
From: birnenkram @ 2021-10-24 6:40 UTC (permalink / raw)
To: virtio-fs
Oops, the Subject should have been the other way round:
write permissions for Windows guest on Linux host.
Can that be changed on the mailing list?
Best regards, Michael
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Virtio-fs] write permissions for Windows host on Linux guest
2021-10-24 6:24 [Virtio-fs] write permissions for Windows host on Linux guest birnenkram
2021-10-24 6:40 ` birnenkram
@ 2021-10-25 13:16 ` Vivek Goyal
[not found] ` <0c4d0bb990217000fe24f4a8522dcfa3@posteo.de>
1 sibling, 1 reply; 7+ messages in thread
From: Vivek Goyal @ 2021-10-25 13:16 UTC (permalink / raw)
To: birnenkram; +Cc: virtio-fs
On Sun, Oct 24, 2021 at 06:24:33AM +0000, birnenkram@posteo.de wrote:
> Hello list,
>
> thanks for a great project which will simplify my workflow a lot once I get
> everything working.
>
> I am trying to share a folder from an Ubuntu 20.04.3 host with a Windows 10
> build 19042 (20H2) guest, using QEMU 5.2 / libvirt 7.0.0 on the host and
> virtio-win 0.1.208 (driver 100.85.104.20800 and associated virtiofs service)
> on the guest. I got the Windows drivers from
> https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md
> (stable virtio-win ISO).
>
> So far I am able to read files in this host folder without problems from the
> guest. However I can only create/write/delete files on the host if
>
> I use a shell (Windows CMD or Cygwin bash) with *Administrator* rights
> on the guest
> OR
> I change the folder permissions on the host, giving write permissions to
> "other". Neither of these options is acceptable as a permanent solution.
>
> I already toyed with various settings for "user" in /etc/libvirt/qemu.conf,
> including root and the user owning the shared folder (myself), without
> success. I struggle to understand what ultimately determines the write
> permissions on the host folder.
Hi Michael,
FUSE protocol sends the uid/gid of the client to the server and server
switches to that uid/gid before performing file operation. I am not
sure how the concept of uid/gid works with windows client but if you
are sharing a directory owned by a uid/gid on host, guest will have
to use same uid/gid to be able to use it (or become root inside).
Vivek
> I had assumed this to be related to the UID
> of one of the hypervisor processes, so I do not see why running as
> Administrator or not on the guest should make a difference. Also, virtiofsd
> seems to be running as root anyway, so should have the necessary
> permissions. There's no SELinux on my system.
>
> My Windows and Linux user names are different. I don't know if that matters,
> and whether the software attempts to map the two (as Cygwin does).
>
> Do you have any ideas what the problem could be? I have seen various users
> reporting issues with write permissions from Windows guests in the recent
> past, but no solution which would solve the issue for me.
>
> Best regards, Michael
>
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs@redhat.com
> https://listman.redhat.com/mailman/listinfo/virtio-fs
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-05-06 7:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24 6:24 [Virtio-fs] write permissions for Windows host on Linux guest birnenkram
2021-10-24 6:40 ` birnenkram
2021-10-24 8:58 ` birnenkram
2021-10-25 13:16 ` Vivek Goyal
[not found] ` <0c4d0bb990217000fe24f4a8522dcfa3@posteo.de>
2021-10-25 17:32 ` Vivek Goyal
2021-10-25 17:52 ` birnenkram
2022-05-06 7:23 ` Nyquist
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.