Skip to content

Instantly share code, notes, and snippets.

@valorad
Last active April 16, 2018 08:05
Show Gist options
  • Save valorad/d39654a723c5e9c85448041536522705 to your computer and use it in GitHub Desktop.
Save valorad/d39654a723c5e9c85448041536522705 to your computer and use it in GitHub Desktop.
Mount Parallel Desktop Shared Folder to workspace as a non-root user (uid=1000)
[Unit]
Description=Mount Parallel Desktop Shared Folder to workspace as a non-root user (uid=1000)
[Service]
ExecStart=/bin/bash /workspace/pMountSF.sh
[Install]
WantedBy=multi-user.target
sfs=`ls /media/psf/`
for folder in ${sfs[@]}; do mkdir -p /workspace/$folder; mount -t prl_fs -o uid=1000,gid=1000 $folder /workspace/$folder; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment