[Cialug] Rhel 7 Selinux settings for Root user
Daniel A. Ramaley
daniel.ramaley at drake.edu
Tue Aug 15 14:58:27 UTC 2017
I've never seen SELinux interfere with yum before. Is your Python
installation OK? Do you have multiple Pythons by any chance? I'm curious
whether yum runs the same Python that when when you run Python directly.
Can you provide output from these?
# ls -l $(which yum)
# head -n 1 $(which yum)
# which python
Please note that on RHEL 7, /bin is just a symlink to /usr/bin, so if
you see /bin/python and /usr/bin/python they should be the same. You can
confirm that with:
# ls -ld /bin
On 2017-08-15 09:27, kslaugh19 wrote:
>
> In Rhel 7, we continue to receive permission denied when logged in as Root on a console with selinux enforced.
> If I run the yum command as Root, not sudoing as Root, I get a python error. If I run the same yum command but first call the program python, yum works. Any ideas on what sebool needs enabled so that root can run scripts or programs without having to call the program first?
> Setting selinux as permissive works but not an option.
> Any ideas?
> I've ran the command setsebool and tried to locate any sebool setting and toggled quite a bit without any luck.
> Thanks
> Rabid_Gerbil
> Sent via the Samsung Galaxy S7 active, an AT&T 4G LTE smartphone
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
__
Daniel Ramaley | Server Engineer 2
Information Technology Services | Drake University
T: +1-515-271-4540
W: http://its.drake.edu/
More information about the Cialug
mailing list