From nobody@FreeBSD.org  Mon Mar 21 17:04:47 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 30B1916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 17:04:47 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 18A7D43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 17:04:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2LH4kB2076021
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 17:04:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j2LH4kiD076020;
	Mon, 21 Mar 2005 17:04:46 GMT
	(envelope-from nobody)
Message-Id: <200503211704.j2LH4kiD076020@www.freebsd.org>
Date: Mon, 21 Mar 2005 17:04:46 GMT
From: Alex Deiter <tiamat@komi.mts.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net/rdist6 ignore ssh transport
X-Send-Pr-Version: www-2.3

>Number:         79093
>Category:       ports
>Synopsis:       net/rdist6 ignore ssh transport
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 21 17:10:04 GMT 2005
>Closed-Date:    Thu Dec 17 11:04:18 UTC 2009
>Last-Modified:  Thu Dec 17 11:04:18 UTC 2009
>Originator:     Alex Deiter
>Release:        5.3
>Organization:
MTS Komi
>Environment:
FreeBSD simona.komi.mts.ru 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Feb 13 18:54:38 MSK 2005     root@simona.komi.mts.ru:/var/devel/obj/var/devel/src/sys/MTSKOMI  i386

>Description:
net/rdist6 cannot use ssh as rcmd:

# rdist6 -P /usr/bin/ssh -f Distfile
server.komi.mts.ru: updating host server.komi.mts.ru
rshd: Login incorrect.


>How-To-Repeat:
install net/rdist6
create Distfile:

Conf = (/etc/rc.conf)
ConfHosts = (server)

all:

${Conf} -> ( ${ConfHosts} )

run rdist6 as root: 

# rdist6 -P /usr/bin/ssh -f Distfile

>Fix:
remove from files/patch-ag:

-#define _PATH_REMSH	"/usr/bin/rsh"			/**/
+#define _PATH_REMSH	"/usr/bin/ssh"			/**/

or change files/patch-ae:

-desc = rcmd(&rhost, port, luser, ruser, cmd, 0);
+desc = rshrcmd(&rhost, port, luser, ruser, cmd, 0);
>Release-Note:
>Audit-Trail:
	Alex, am I right assuming, this only affects you, when you
	run rdist6 as superuser?
Responsible-Changed-From-To: freebsd-ports-bugs->mi 
Responsible-Changed-By: mi 
Responsible-Changed-When: Tue Apr 12 19:03:31 GMT 2005 
Responsible-Changed-Why:  
Default to ssh was my work... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79093 

From: Vivek Khera <vivek@khera.org>
To: bug-followup@FreeBSD.org
Cc: mi@freebsd.org
Subject: Re: ports/79093: net/rdist6 ignore ssh transport
Date: Fri, 28 Oct 2005 14:17:47 -0400

 Hi,
 
 I have the same issue. It only affects rdist running as root.  For  
 normal users it uses the SSH transport just fine.  It is kind of  
 humorous that it reverts back to rsh for root, actually...
 
 I have tried the second of the two fixes changing the rcmd() call to  
 rshrcmd() and it has solved the problem for me.
 
 Please commit this to the port.  Thanks!
 

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: Vivek Khera <vivek@khera.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/79093: net/rdist6 ignore ssh transport
Date: Fri, 28 Oct 2005 14:35:59 -0400

 >It is kind of humorous that it reverts back to rsh for root, actually...
 
 Yes, it is... I was hoping, there'd be some secure alternative like scmd 
 someday.
 
 > I have tried the second of the two fixes changing the rcmd() call to 
 > rshrcmd() and it has solved the problem for me.
 >
 > Please commit this to the port. Thanks!
 
 Yes, I will. It took too long already. Sorry,
 
 	-mi

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: bug-followup@freebsd.org, tiamat@komi.mts.ru
Cc:  
Subject: Re: ports/79093: net/rdist6 ignore ssh transport
Date: Fri, 28 Oct 2005 18:24:28 -0400

 Actually, the best fix is to just remove the patch-ae entirely. Does that work 
 for you, guys?
 
 	-mi

From: =?KOI8-R?Q?=E4=C5=CA=D4=C5=D2_=E1=CC=C5=CB=D3=C1=CE=C4=D2_=F7=C1?= =?KOI8-R?Q?=CC=C5=D2=C9=C5=D7=C9=DE?= <tiamat@komi.mts.ru>
To: Mikhail Teterin <mi+mx@aldan.algebra.com>,
	bug-followup@freebsd.org
Cc:  
Subject: Re: ports/79093: net/rdist6 ignore ssh transport
Date: Sat, 29 Oct 2005 12:03:39 +0400

 Mikhail Teterin wrote:
 
 > Actually, the best fix is to just remove the patch-ae entirely. Does that work 
 > for you, guys?
 
 Work fine for me.
 
 Thanks!
 
 -- 
 Alex Deiter
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Dec 17 08:23:52 UTC 2009 
State-Changed-Why:  
Try to rescue this aging PR. 


Responsible-Changed-From-To: mi->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Dec 17 08:23:52 UTC 2009 
Responsible-Changed-Why:  
To submitter: is this ancient PR still relevant? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79093 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Dec 17 11:04:11 UTC 2009 
State-Changed-Why:  
Submitter's email address bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79093 
>Unformatted:
