Subject: Re: CVS_RSH to ssh
To: NetBSD Userlevel Technical Discussion List <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 06/18/2003 00:43:50
i still use rsh with cvs on occasion. it's useful for things like
pretending to access a remote repository that's really local since i
% ps $$
PID TT STAT TIME COMMAND
664 p1 Ss 0:00.12 -csh (tcsh)
% echo $CVS_RSH
CVS_RSH: Undefined variable.
% grep rsh /etc/inetd.conf
#shell stream tcp nowait root /usr/libexec/rshd ...
#shell stream tcp6 nowait root /usr/libexec/rshd ...
#kshell stream tcp nowait root /usr/libexec/rshd ...
% cvs -d localhost:/cvsroot co postfix
cvs server: Updating postfix
since i know that if i rsh to *localhost* to execute a command, i'll
get a connection over a socketpair() and not an inet/inet6 connection.
i also get better performance than over an inet/inet6 connection,
since all that wasteful checksumming isn't performed. :)
it's tricks like this that allow me to have a local copy of the cvs
binary that's not suid to the owner of the cvs repository, but still
be able check stuff out that i can update/change/delete without having
to involve "privileges".
then again, i'm not claiming to be in the majority. i'm just
providing a data point.
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."