Last active
January 22, 2019 02:18
-
-
Save valorad/b9099022d46f7f11e1b4892d4481e237 to your computer and use it in GitHub Desktop.
Mount Virtual Box Shared Folder to workspace as a non-root user (uid=1000, gid=1000)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep 5 | |
sfs=`ls /media` | |
for folder in ${sfs[@]}; do name=${folder#*sf_}; mkdir -p /workspace/$name; mount -t vboxsf -o uid=1000,gid=1000 $name /workspace/$name; done | |
# usage | |
# - Create shared folders from virtualbox interface. No need to auto-mount | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For systemd service, please refer to https://gist.github.com/valorad/d39654a723c5e9c85448041536522705