1. Install the virtualbox guest tool
sudo apt install virtualbox-guest-utils
2. Add user to the virtualbox group
sudo usermod -aG vboxsf "user_name"
3. mount the shared folder as user
sudo mount -t vboxsf -o uid=$(id -u user_name),gid=$(id -g user_name) adb /SharedFolder
4. Change the folder access attribute
sudo chmod -R 777 /SharedFolder
After finishing above steps, you can directly read/write the shared folder without sudo.
沒有留言:
張貼留言