From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,99d8822ccc6ff536 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-07 11:26:49 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!bloom-beacon.mit.edu!paperboy.osf.org!jeffc From: jeffc@soba.osf.org (Jeff Carter) Newsgroups: comp.unix.osf.osf1 Subject: Re: Anonymous FTP Date: 7 Oct 1993 17:19:35 GMT Organization: Open Software Foundation Distribution: world Message-ID: <291j37$g9v@paperboy.osf.org> References: NNTP-Posting-Host: soba.osf.org In article , sysmark@helios.physics.utoronto.ca (Mark Bartelt) writes: > Keith Scollick reported that ... > > | I tried here, but I have a problem with getting the dir command to > | work. I get the error: > | /bin/ls: Exec format error > | The ls command by itself is fine, it's just the dir command that seems > | to be having problems. > > ... to which Eiji Hirai replied ... > > ... > | > | Also, did you just copy /usr/bin/ls to ~ftp/bin/ls? What you'll need is a > | static-ly linked version of ls. Get a copy you can compile from > | > | prep.ai.mit.edu:/pub/gnu/fileutils-3.6.tar.gz > | > | link ls with -non_shared and install that in ~ftp/bin/. > > An even easier thing to do is copy /sbin/ls to ~ftp/bin, since the "ls" in > /sbin *is* statically linked. In _some_ versions of OSF/1, the /sbin directory has been made largely shared. If this is the case, then /sbin/ls is a shared-library executable, and there is a copy of a preloaded libc.so in /loader. If this is the case on your system, you will need to copy the following files to the "ftp root" /loader/* => ~ftp/var/adm/loader/ /sbin/loader => ~ftp/sbin/loader /sbin/ls => ~ftp/bin/ls You won't need libc.so.