Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gakushi0130/6911424 to your computer and use it in GitHub Desktop.
Save gakushi0130/6911424 to your computer and use it in GitHub Desktop.
VirtualBox共有ファイルパーミッション設定
VirtualBoxで共有ファイルを作るとパーミッションが
ユーザー root グループ root
パーミッション rwxrwxrwxになるのを変更
rc.localでマウントするときに以下の内容でマウントするようにする。
uid gidはidコマンドで調べること。
$ vim /etc/rc.local
mount -t vboxsf -o uid=0,gid=0,dmode=0755,fmode=0644 html /var/www/html
こうすることで、指定ユーザーとパーミッションでマウントできる。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment