Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!chx400!bernina!karrer From: karrer@bernina.ethz.ch (Andreas Karrer) Newsgroups: comp.protocols.tcp-ip.domains Subject: Sun's "rcp" does not use resolver Message-ID: <1991Apr7.114340.3310@bernina.ethz.ch> Date: 7 Apr 91 11:43:40 GMT Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH Lines: 22 On my sun, I recently build a new shared libc.so that does hostname lookup by first searching /etc/hosts and then asking the DNS. I believe this is the Right Thing to do because: - you have hosts like "localhost" in /etc/hosts where they should be; - you don't do high-level protocol conversion as with the "B=-b" kludge. Almost everything (ping/telnet/rsh/rlogin/ftp etc) works fine EXCEPT rcp. Reason: % file /usr/ucb/rcp /usr/ucb/rsh /usr/ucb/rcp: sparc demand paged set-uid executable /usr/ucb/rsh: sparc pure dynamically linked set-uid executable oops - rcp does not use /usr/lib/libc.so.n.n.n... And I was beginning to hope we could throw away the hosts.* NIS maps... Is there any (security?) reason for rcp NOT being dynamically linked? Ok, rcp is setuid root, but then, so are rsh and rlogin. +----------- Andi Karrer, Communication Systems, ETH Zuerich, Switzerland karrer@bernina.ethz.ch