[Bug 1184392] New: VirtualBox shared folder always owned by root
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392 Bug ID: 1184392 Summary: VirtualBox shared folder always owned by root Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Major Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: shundhammer@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I have been working with Tumbleweed in a VirtualBox VM since Corona forced us all into home office, and it had always worked fine to use a shared folder from my host system for software development. I even wrote up the procedure how to get this working, and that's what I did (and verified): https://github.com/shundhammer/huha-linux-tips/blob/master/doc/virtualbox-ti... But this stopped working since I got back to work with that VM today after a TW update: Everything in my shared folders is now owned by root, and I can't get it back to normal. [sh @ balrog-tw-dev] ~ 4 % grep vbox /etc/fstab work_src /work/src vboxsf uid=1000,gid=100 0 0 work_tmp /work/tmp vboxsf uid=1000,gid=100 0 0 [sh @ balrog-tw-dev] ~ 5 % grep vbox /etc/group vboxguest:x:464: vboxsf:x:463:sh [sh @ balrog-tw-dev] ~ 6 % id uid=1000(sh) gid=100(users) groups=100(users),463(vboxsf) [sh @ balrog-tw-dev] ~ 7 % ll /work/src total 32 drwxrwxr-x 1 root root 4096 Mai 11 2020 gettext-tester drwxrwxr-x 1 root root 4096 Jun 9 2020 gnu drwxr-xr-x 1 root root 4096 Dez 8 2015 icons drwxrwxr-x 1 root root 4096 Dez 17 10:15 libyui-community drwxrwxr-x 1 root root 4096 M�r 24 19:34 qdirstat drwxrwxr-x 1 root root 4096 M�r 29 2020 qtbase drwxrwxr-x 1 root root 4096 Dez 5 2015 serfides drwxrwxr-x 1 root root 4096 Apr 1 17:46 yast Unmounting and mounting manually also does not help: [sh @ balrog-tw-dev] ~ 14 % sudo umount /work/src [sh @ balrog-tw-dev] ~ 15 % mount | grep "/work/src" [sh @ balrog-tw-dev] ~ 17 % sudo mount -t vboxsf -o uid=1000,gid=100 work_src /work/src [sh @ balrog-tw-dev] ~ 18 % mount | grep "/work/src" work_src on /work/src type vboxsf (rw,nodev,relatime) [sh @ balrog-tw-dev] ~ 19 % ll /work/src total 32 drwxrwxr-x 1 root root 4096 Mai 11 2020 gettext-tester drwxrwxr-x 1 root root 4096 Jun 9 2020 gnu drwxr-xr-x 1 root root 4096 Dez 8 2015 icons drwxrwxr-x 1 root root 4096 Dez 17 10:15 libyui-community drwxrwxr-x 1 root root 4096 M�r 24 19:34 qdirstat drwxrwxr-x 1 root root 4096 M�r 29 2020 qtbase drwxrwxr-x 1 root root 4096 Dez 5 2015 serfides drwxrwxr-x 1 root root 4096 Apr 1 17:46 yast [sh @ balrog-tw-dev] ~ 22 % rpm -qa "virtualbox*" virtualbox-guest-x11-6.1.18-4.1.x86_64 virtualbox-kmp-default-6.1.18_k5.11.4_1-4.2.x86_64 virtualbox-kmp-default-6.1.18_k5.11.6_1-4.3.x86_64 virtualbox-guest-tools-6.1.18-4.1.x86_64 [sh @ balrog-tw-dev] ~ 23 % cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20210401" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20210401" PRETTY_NAME="openSUSE Tumbleweed" ... ... On my host system it looks like this: [sh @ balrog] ~ 1 % ll /work/src total 40 drwxrwxr-x 10 sh users 4096 Apr 6 15:11 . drwxr-xr-x 22 sh users 4096 M�r 24 19:54 .. drwxrwxr-x 3 sh sh 4096 Mai 11 2020 gettext-tester drwxrwxr-x 3 sh sh 4096 Jun 9 2020 gnu drwxr-xr-x 3 sh sh 4096 Dez 8 2015 icons drwxrwxr-x 8 sh sh 4096 Dez 17 10:15 libyui-community drwxrwxr-x 11 sh sh 4096 M�r 24 19:34 qdirstat drwxrwxr-x 14 sh sh 4096 M�r 29 2020 qtbase drwxrwxr-x 7 sh users 4096 Dez 5 2015 serfides drwxrwxr-x 25 sh sh 4096 Apr 1 17:46 yast [sh @ balrog] ~ 2 % id uid=1000(sh) gid=1000(sh) groups=1000(sh),4(adm),24(cdrom),27(sudo),29(audio),30(dip),44(video),46(plugdev),113(netdev),118(lpadmin),120(scanner),126(sambashare),131(vboxusers) [sh @ balrog] ~ 5 % cat /etc/os-release NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.5 LTS" VERSION_ID="18.04" ... ... [sh @ balrog] ~ 19 % dpkg -l "virtualbox*" | grep '^ii' | column -t | cut -c1-60 ii virtualbox 5.2.42-dfsg-0~ubuntu1.18.04.1 amd6 ii virtualbox-dkms 5.2.42-dfsg-0~ubuntu1.18.04.1 all ii virtualbox-ext-pack 5.2.42-1~ubuntu1.18.04.1 all ii virtualbox-qt 5.2.42-dfsg-0~ubuntu1.18.04.1 amd6 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c1
--- Comment #1 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c2
Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c3
--- Comment #3 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c4
--- Comment #4 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c5
--- Comment #5 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c6
--- Comment #6 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c7
--- Comment #7 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c8
--- Comment #8 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c9
Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c10
--- Comment #10 from Stefan Hundhammer
00:04:15.179691 VMMDev: Guest Log: vboxsf: Host rejected mount of 'work/src' with error -2
Disregard that, that must have been me experimenting on the command line and not entering the correct path. A new try without any manual interaction from my side does not produce that message. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c15
--- Comment #15 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c16
--- Comment #16 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c18
--- Comment #18 from Stefan Hundhammer
Indeed, and I see this problem with a Mac host, thus the problem is more likely to be on the guest side.
Yes, since it works fine on the same host with a different VM with Leap 15.1 with an older version of the virtualbox-guest-tools, and it worked fine with my Tumbleweed VM until a "zypper dup" (after not using and not updating it for 6 or more weeks). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c19
--- Comment #19 from Larry Finger
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c20
--- Comment #20 from Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c21
--- Comment #21 from Larry Finger
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c22
Stefan Hundhammer
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392
http://bugzilla.opensuse.org/show_bug.cgi?id=1184392#c23
--- Comment #23 from Rihards Olups
participants (1)
-
bugzilla_noreply@suse.com