Mac OSx 上的 Vagrant rsync 同步文件夹用户组问题

Vagrant rsync synced folder user group issue on Mac OSx

我正在尝试使用 vagrant 设置同步文件夹,设置在 linux 机器上完美运行但 Mac OSX (10.10),它不会加载预期的文件夹 user/group 许可:

 config.vm.synced_folder "./hp", "/var/www/hp",
    :rsync => true,
    :user => 'www-data',
    :group => 'www-data',
    :rsync__chown => true,
    :rsync__verbose => true,
    :rsync_exclude => [".git/"]

所以权限看起来像

vagrant@vagrant-ubuntu-trusty-64:~$ ls -al /var/www
total 16
drwxr-xr-x  5 www-data www-data 4096 May 27 13:35 .
drwxr-xr-x 14 root     root     4096 May 10 05:39 ..
drwxr-xr-x  1 vagrant  www-data  952 May 27 16:56 hp
drwxr-xr-x  2 root     root     4096 May 10 12:54 html

应该是 owner 而不是 user 所以 www-data 将拥有 hp 共享文件夹

config.vm.synced_folder "./hp", "/var/www/hp",
    :rsync => true,
    :owner => 'www-data',
    :group => 'www-data',
    :rsync__chown => true,
    :rsync__verbose => true,
    :rsync_exclude => [".git/"]