Re:FreeBSD deprecates all r-cmds (rcp, rlogin, etc.)
by SwellJoe on Tuesday July 04, 2017 @09:52PM
(#14699512)
That's an interesting choice; I'm not sure it's a good one. While I don't want anyone using the old r protocols, I also don't really want transparent redirects to other protocols. What if a Debian user was in the habit of using "rcp file somehost" and found themselves working on a non-Debian system where rcp was not linked to a secure command?
[ Parent
| on HN ]
Re:FreeBSD deprecates all r-cmds (rcp, rlogin, etc.)
by hazeii on Wednesday July 05, 2017 @02:39AM
(#14700338)
Indeed, as a regular rsh user, this caught me out; it seems a poor choice to replace a working command with a non-functional alternative (and obviously ssh doesn't want to add a feature like silently falling back to rsh).
Re:FreeBSD deprecates all r-cmds (rcp, rlogin, etc.)
by k0ngo on Wednesday July 05, 2017 @02:38AM
(#14700336)
I'd expect scp to detect (using argv[0]) that it is called through a symlink and behave as rcp, not scp. This is how busybox is implemented, with many programs in one binary.
Re:FreeBSD deprecates all r-cmds (rcp, rlogin, etc.)
by SwellJoe on Wednesday July 05, 2017 @02:44AM
(#14700355)
If it did I'd be really disappointed in the openssh developers.
But, I can see the logic behind your expectation. Bash behaves in POSIX compatibility mode (mostly) when called with 'sh', vim acts like vi when called with 'vi', etc. But, when security is the feature being completely removed to achieve compatibility, it'd be hard to argue it's a good idea.