Centos vagrant Synched_文件夹文件权限
流浪者版本1.6.3 虚拟盒4.3.12 VboxGuestaditions-4.3.2 主机操作系统->Windows 8 来宾操作系统->CentOS 6.4 这是我的文件的内容(开发者是用户名) 现在,当我试图通过chmod命令更改synced_文件夹(/var/www)或synced_文件夹的子目录或文件的访问权限时,结果并不像预期的那样 比如说Centos vagrant Synched_文件夹文件权限,centos,vagrant,file-permissions,chmod,Centos,Vagrant,File Permissions,Chmod,流浪者版本1.6.3 虚拟盒4.3.12 VboxGuestaditions-4.3.2 主机操作系统->Windows 8 来宾操作系统->CentOS 6.4 这是我的文件的内容(开发者是用户名) 现在,当我试图通过chmod命令更改synced_文件夹(/var/www)或synced_文件夹的子目录或文件的访问权限时,结果并不像预期的那样 比如说 1) vim testFile.php 2) ls -al testFile.php -rwxrwxrwx 1 developer
1) vim testFile.php
2) ls -al testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php
3) chmod 700 testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php
4) chmod 000 testFile.php
-r-xr-xr-x 1 developer developer 12 Sep 23 15:52 testFile.php
5) chmod 111 testFile.php
-r-xr-xr-x 1 developer developer 12 Sep 23 15:52 testFile.php
6) chmod 077 testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php
基本上,“所有者”、“组”和“其他人”始终可以读取和执行该文件。
问题是为什么会这样?有什么解决办法吗?我希望同步的_文件夹按照centOS访问权限运行
这几天我真的被困在这里了,请帮帮我
谢谢来宾操作系统通常会保留主机的权限。尝试在Windows上为其他用户添加权限
1) vim testFile.php
2) ls -al testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php
3) chmod 700 testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php
4) chmod 000 testFile.php
-r-xr-xr-x 1 developer developer 12 Sep 23 15:52 testFile.php
5) chmod 111 testFile.php
-r-xr-xr-x 1 developer developer 12 Sep 23 15:52 testFile.php
6) chmod 077 testFile.php
-rwxrwxrwx 1 developer developer 12 Sep 23 15:52 testFile.php