Created
October 10, 2013 01:11
-
-
Save gakushi0130/6911424 to your computer and use it in GitHub Desktop.
VirtualBox共有ファイルパーミッション設定
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
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