View previous topic :: View next topic |
Author |
Message |
AgBr Apprentice
Joined: 06 Nov 2010 Posts: 195
|
Posted: Thu Sep 12, 2013 4:49 pm Post subject: [solved] su - permission denied |
|
|
If I try to su to root I get a permission denied lately. If I change SU_WHEEL_ONLY to "yes" I get informed that the variable in login.defs is unknown. Is there anyone who can enlighten me, what to look for?
Last edited by AgBr on Thu Sep 12, 2013 5:16 pm; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Thu Sep 12, 2013 5:12 pm Post subject: |
|
|
First, read https://forums.gentoo.org/viewtopic-t-23378.html
Next is this error coming from your shell or from su? Post exact text as it comes out. Make sure the permissions on the su binary is correct but if it changed, need to figure out what changed it (rootkit? virus? bug?)
Other things past the FAQ is making sure your PAM configs are up to date with etc-update/dispatch-conf. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
AgBr Apprentice
Joined: 06 Nov 2010 Posts: 195
|
Posted: Thu Sep 12, 2013 5:19 pm Post subject: |
|
|
I had to comment the following line in /etc/pam.d/su
#auth required pam_wheel.so use_uid
the variable SU_WHEEL_ONLY in /etc/login.def which is referenced in su(1) is missleading
Thank you for looking into this |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Thu Sep 12, 2013 9:35 pm Post subject: |
|
|
Is there a reason why you don't put all users who legitimately know the root password in the wheel group?
Is wheel not working?
Or do you have a yp/nis system or something that you don't want to edit groups the same for all machines in the domain? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|