getpeereid

Darren Tucker dtucker at zip.com.au
Thu Feb 24 06:56:12 EST 2005


Corinna Vinschen wrote:
>   if ((euid != 0) && (getuid() != euid))
> 
> ?  Is there any good reason why root should be able to connect to the
> ssh-agent of a user?  What is that reason?  Otherwise, shouldn't it be
> better just

ssh is setuid root in some configurations (eg for RhostsRSAAuthentication, 
UsePrivilegedPort).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list