Skip to content

Instantly share code, notes, and snippets.

View gakushi0130's full-sized avatar

Gakushi gakushi0130

View GitHub Profile
@gakushi0130
gakushi0130 / VirtualBox共有ファイルパーミッション設定
Created October 10, 2013 01:11
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