LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   selinux not allowing su to root (http://www.linuxquestions.org/questions/linux-security-4/selinux-not-allowing-su-to-root-610343/)

vonedaddy 01-01-2008 08:01 AM

selinux not allowing su to root
 
I can no longer su to root

When i log in via ssh as a normal user (user is in the wheel group also) and try to su to root with the su - command I dont even get prompted for the password. It just ignores the request and gives me my normal user prompt back.

I figured out that is I disable selinux (setenforce 0) I am then able to su without issues.

I can however login directly as root via ssh even though I add PermitRootLogin no to the /etc/ssh/sshd_config file. (See this thread: http://www.linuxquestions.org/questi...orking-610278/)


So here you can see my problem. I want to disable root login via ssh, but I can not until I can make sure I can su to root from a normal account.

Does anyone know of a special boolean for selinux or something I need to do to correct this?

jschiwal 01-02-2008 01:28 AM

On some systems, if you have the permissions setting on paranoid, the su program won't be suid.
This isn't an suid setting however.
Does the selinux configuration dialog have an entry for "su"? It may have a setting whether the su command can only be executed on a local terminal.

vonedaddy 01-02-2008 06:47 AM

Quote:

Originally Posted by jschiwal (Post 3008250)
On some systems, if you have the permissions setting on paranoid, the su program won't be suid.
This isn't an suid setting however.
Does the selinux configuration dialog have an entry for "su"? It may have a setting whether the su command can only be executed on a local terminal.

No I didnt see one, and I also checked the permissions of the actual su file. The funny thing was that even root couldnt su to a user.

unSpawn 01-03-2008 05:39 PM

Any related AVC messages in the system logs?


All times are GMT -5. The time now is 10:57 AM.