Bug 79093 - net/rdist6 ignore ssh transport
Summary: net/rdist6 ignore ssh transport
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 17:10 UTC by Alex Deiter
Modified: 2009-12-17 11:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Deiter 2005-03-21 17:10:04 UTC
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.

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);
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
Comment 1 Mikhail Teterin freebsd_committer freebsd_triage 2005-04-12 20:03:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mi

Default to ssh was my work...
Comment 2 Vick Khera 2005-10-28 19:17:47 UTC
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!
Comment 3 Mikhail Teterin 2005-10-28 19:35:59 UTC
> 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
Comment 4 Mikhail Teterin 2005-10-28 23:24:28 UTC
Actually, the best fix is to just remove the patch-ae entirely. Does that work 
for you, guys?

	-mi
Comment 5 Alex Deiter 2005-10-29 09:03:39 UTC
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
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2009-12-17 08:23:52 UTC
State Changed
From-To: open->feedback

Try to rescue this aging PR. 


Comment 7 Mark Linimon freebsd_committer freebsd_triage 2009-12-17 08:23:52 UTC
Responsible Changed
From-To: mi->linimon

To submitter: is this ancient PR still relevant?
Comment 8 Mark Linimon freebsd_committer freebsd_triage 2009-12-17 11:04:11 UTC
State Changed
From-To: feedback->closed

Submitter's email address bounces.