我在我的RHEL7.6服务器上有一个普通用户,当SELinux关闭时,su命令为它工作。但是当SElinux打开时,su命令就不再工作了。在PAM源代码中,我发现if (geteuid() || SELINUX_ENABLED)如果打开unix_chkpwd,则使用一个特殊命令SELinux来检查密码。此命令有一个代码:
use
## SELINUX NOTES:# If you want to use the useradd/groupadd family of binaries## "samba_share_t" so that selinux.
# Make sure not to do that on system directories as they may
我正在CentOS 7上运行一个服务器。当我执行一个要在root dir (/var/www/html/)中创建一个新文件的775文件时,apache具有对/var/www/html的775权限,我得到了以下错误Warning: file_put_contents(file.bin): failed to open stream: Permission denied in /var/www/html/file.php<?php$file = 'file.bin