Re: ssh prompting for password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 11/16/2010 06:19 PM, Kwan Lowe wrote:
> On Tue, Nov 16, 2010 at 9:14 PM, Stephen Harris<lists@xxxxxxxxxx>  wrote:
>> Depends on the sshd_config; "UsePrivilegeSeparation yes" (which is
>> normally the default) means that phase is run as the destination user
>> and not as root.
>
> To clarify, the sshd listener runs as root and then drops privileges
> once the user is authenticated..  The issue is specifically the root
> squash across NFS filesystems which is normally set to disable root
> privs on the mount (that, and noexec).  I.e., even root has no privs
> to validate the shared key.

You are both incorrect.  Key authentication *always* takes place as the 
user requesting login, regardless of the UsePrivilegeSeparation option.

When using UsePrivilegeSeparation, sshd creates a separate process to 
handle the crypto and compression bits (primarily) of incoming traffic, 
in order to prevent privilege escalation.  That option does not affect 
most authentication types (it is documented to interact with UseLogin, 
which is off by default).

I'm not aware of any configuration where root_squash will prevent users 
from authenticating with keys.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux