Tech Support > Operating Systems > Linux / Variants > Gentoo SSH su fail
Gentoo SSH su fail
Posted by Chris on March 6th, 2004


I am running Gentoo, I have set sshd up so that it won't allow root to
login directly, but "su -" doesn't work. This works on my Red Hat box
with the same setup so root can't directly login, can anyone tell me
what I did wrong, or what I should post in order to get some advising on
the situation. Thank you in advance.

Posted by Chris on March 6th, 2004


Chris wrote:

line being "auth required /lib/security/pam_wheel.so use_uid"
for anyone who encounters this problem.


Posted by Johan Lindquist on March 6th, 2004


So anyway, it was like, 08:26 CET Mar 06 2004, you know? Oh, and, yeah,
Chris was all like, "Dude,
The correct approach would be to add the users needing the su to root
capability to the "wheel" group, instead of crippling pam. This is a
gentoo (among others) faq, well documented.

hth.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
12:58:11 up 13 days, 19:34, 6 users, load average: 2.29, 1.77, 1.32
$ cat /dev/bollocks "echo y | format c:" Registered Linux user #261729
architect cross-platform communities

Posted by Chris on March 6th, 2004


Johan Lindquist wrote:
documented at, because I would like to try to keep the system configured
the way the documentation suggests. Thank you.


Posted by Tony Curtis on March 6th, 2004


man groupadd

"sudo" gives you much more flexibility and control over root
activities than just "su" though.

hth
t

Posted by Chris on March 6th, 2004


Tony Curtis wrote:


Posted by Johan Lindquist on March 7th, 2004


So anyway, it was like, 23:01 CET Mar 06 2004, you know? Oh, and, yeah,
Chris was all like, "Dude,
The gentoo faq:

<http://www.gentoo.org/doc/en/faq.xml#doc_chap3_sect7>

The gentoo handbook:

<http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=11>

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
10:57:16 up 14 days, 17:33, 6 users, load average: 1.14, 1.06, 1.05
$ cat /dev/bollocks "echo y | format c:" Registered Linux user #261729
streamline user-centric niches


Similar Posts