New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users don't get created when installing packages with yum #6735
Comments
This sounds like an selinux issue. There's nothing that Salt does by itself when installing packages with yum, that would cause user creation to be skipped. @thatch45 thoughts? |
I've hit this with a number of packages e.g. memcached and libcgroup: 2013-08-18 22:34:37,037 [salt.loaded.int.module.yumpkg][ERROR ] Error in PREIN Ironically getting libcgroup on the machine was done to enable the selinux state to then switch it to permissive mode (state.selinux depends on semange which on RHEL 6.4 pulls in libcgroup). The list of packages that this affects is quite large nrpe, nagios, samba for me so far with many of these packages installing reporting no errors. On systems running selinux salt needs more privs than it has by default at least on RHEL-a-like systems. |
This bug and those linked from it cover similar issues: https://bugzilla.redhat.com/show_bug.cgi?id=844167 |
So should this one be closed as a duplicate? |
I'd say so yes. The current troubleshooting docs cover the workaround and #1392 covers the future ideal. |
Closing as a duplicate. |
With selinux enabled, useradd fails to run in the %pre scripts in rpm/yum.
This was on CentOS 6.4 with the ntpdate package.
The fix might just be a warning about selinux. Not sure. But filing this in case anyone else has same problem.
strace showed:
execve("/usr/sbin/useradd", ["/usr/sbin/useradd", "-u", "38", "-g", "38", "-s", "/sbin/nologin", "-M", "-r", "-d", "/etc/ntp", "ntp"],
[/* 20 vars */]) = -1 EACCES (Permission denied)
The text was updated successfully, but these errors were encountered: