在vagrant上尝试使用简单的apache2配置会导致Permission Denied
错误:
[2014-03-06T18:35:26+00:00] INFO: *** Chef 10.16.2 ***
[2014-03-06T18:35:26+00:00] INFO: Setting the run_list to ["recipe[chef-solo-proxy]", "recipe[yum]", "recipe[apache2]"] from JSON
[2014-03-06T18:35:26+00:00] INFO: Run List is [recipe[chef-solo-proxy], recipe[yum], recipe[apache2]]
[2014-03-06T18:35:26+00:00] INFO: Run List expands to [chef-solo-proxy, yum, apache2]
[2014-03-06T18:35:26+00:00] INFO: Starting Chef Run for localhost.localdomain
[2014-03-06T18:35:26+00:00] INFO: Running start handlers
[2014-03-06T18:35:26+00:00] INFO: Start handlers complete.
================================================================================
Error executing action `start` on resource 'service[apache2]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /sbin/service httpd start ----
STDOUT: Starting httpd: [FAILED]
STDERR: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: Permission denied
---- End output of /sbin/service httpd start ----
Ran /sbin/service httpd start returned 1
我登录了来宾主机并看到httpd.conf
归root所有,不应该是吗?我错过了什么吗?