我正在尝试在启用了SELinux的CentOS 6服务器上配置puppet master。
当我尝试运行puppetmaster时,我得到以下内容。我已经给了所有权限但它仍然无法写入。
[root@server ssl]# puppet master --verbose --no-daemonize
Info: Creating a new SSL key for ca
Error: Could not prepare for execution: Permission denied - /var/lib/puppet/ssl/ca/ca_key.pem
[root@server ssl]# chmod -R 777 /var/lib/puppet/
[root@server ssl]# ls -lZ
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 ca
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 certificate_requests
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 certs
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 private
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 private_keys
drwxrwxrwx. puppet puppet system_u:object_r:puppet_var_lib_t:s0 public_keys
[root@server ssl]#
[root@server ssl]# pwd
/var/lib/puppet/ssl
[root@server ssl]#
我尝试将SELinux置于被动模式,但仍然遇到同样的错误。
任何想法可能是什么?
答案 0 :(得分:0)
尝试删除SSL目录或重命名。然后重新启动puppet服务并重试。