Virtualbox shared folder permissions

前端 未结 11 2024
长情又很酷
长情又很酷 2020-12-22 15:27

I\'m using Windows and Virtualbox with RedHat, putting it simple: I\'ve created a shared folder so I can use Eclipse on my Windows OS and do some testing in Linux.

H

相关标签:
11条回答
  • 2020-12-22 16:01
    sudo adduser xxxxxxx vboxsf
    

    where xxxxxx is your user account name. Log out and log back in to Ubuntu.

    0 讨论(0)
  • 2020-12-22 16:02

    This also works

    sudo usermod -aG <group> <user>
    

    Then restart vm

    0 讨论(0)
  • 2020-12-22 16:02

    The issue is that the shared folder's permissions are set to not allow symbolic links by default. You can enable them in a few easy steps.

    1. Shut down the virtual machine.
    2. Note your machine name at Machine > Settings > General > Name
    3. Note your shared folder name at 'Machine > Settings > Shared Folders`
    4. Find your VirtualBox root directory and execute the following command. VBoxManage setextradata "" VBoxInternal2/SharedFoldersEnableSymlinksCreate/ 1
    5. Start up the virtual machine and the shared folder will now allow symbolic links.
    0 讨论(0)
  • 2020-12-22 16:09

    Try this (on the guest machine. i.e. the OS running in the Virtual box):

    sudo adduser your-user vboxsf
    

    Now reboot the OS running in the virtual box.

    0 讨论(0)
  • 2020-12-22 16:09

    In my case the following was necessary:

    sudo chgrp vboxsf /media/sf_sharedFolder
    
    0 讨论(0)
  • 2020-12-22 16:10

    Add yourself to the vboxsf group within the guest VM.

    Solution 1

    Run sudo adduser $USER vboxsf from terminal.
    (On Suse it's sudo usermod --append --groups vboxsf $USER)

    To take effect you should log out and then log in, or you may need to reboot.

    Solution 2

    Edit the file /etc/group (you will need root privileges). Look for the line vboxsf:x:999 and add at the end :yourusername -- use this solution if you don't have sudo.

    To take effect you should log out and then log in, or you may need to reboot.

    0 讨论(0)
提交回复
热议问题