Re: WU-FTPD lists UIDs and GIDs as numbers
Bob Luckin <[email protected]> Fri, 28 Feb 2003 17:51:06 -0600
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
You might try running ls using truss/trace/strace to see if it is pulling in anything that ldd doesn't mention. You could even run it under chroot if necessary. To be honest, I can't think of a reason why the static ls you built shouldn't work under ftpd if it worked stand-alone, either. (Again, you might try running it chrooted as ftp and see if strace shows anything interesting.) In worst case, you can run with a full copy of ~ftp/lib and keep pulling files out of there until it stops working, to find out which library is causing it. (Painful, I know...) Cheers, Bob On Fri, Feb 28, 2003 at 02:05:31PM -0800, Thomas Bentz wrote: > I just tried it with no difference... It seems like I am missing a library > because if I copy the entire /lib directory to ~ftp/lib it works with the > mapping. > > When I do > # ldd /home/bin/ls > libtermcap.so.2 => /lib/libtermcap.so.2 (0x40019000) > libc.so.6 => /lib/i686/libc.so.6 (0x42000000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > [root@fudd lib]# ls -la -R > .: > total 116 > drwxr-xr-x 3 root root 4096 Feb 28 12:56 . > drwxr-xr-x 11 root root 4096 Feb 28 12:55 .. > drwxr-xr-x 2 root root 4096 Feb 28 10:58 i686 > -rwxr-xr-x 1 root root 89547 Feb 28 10:55 ld-2.2.5.so > lrwxrwxrwx 1 root root 11 Feb 28 10:58 ld-linux.so.2 -> > ld-2.2.5.so > lrwxrwxrwx 1 root root 19 Feb 28 10:54 libtermcap.so.2 -> > libtermcap.so.2.0.8 > -rwxr-xr-x 1 root root 11832 Feb 28 10:55 libtermcap.so.2.0.8 > > ./i686: > total 1384 > drwxr-xr-x 2 root root 4096 Feb 28 10:58 . > drwxr-xr-x 3 root root 4096 Feb 28 12:56 .. > -rwxr-xr-x 1 root root 1401027 Feb 28 10:56 libc-2.2.5.so > lrwxrwxrwx 1 root root 13 Feb 28 10:58 libc.so.6 -> > libc-2.2.5.so > > ***** > > > -----Original Message----- > From: Bob Luckin [mailto:[email protected]] > Sent: Friday, February 28, 2003 1:25 PM > To: Thomas Bentz > Cc: '[email protected]' > Subject: Re: WU-FTPD lists UIDs and GIDs as numbers > > > On Fri, Feb 28, 2003 at 11:58:46AM -0800, Thomas Bentz wrote: > > > > I've copied the libraries needed for ~ftp/bin/ls to work. But it lists the > > UIDs and GIDs as numbers. > > Did you put dummy (ie. with asterisks in the password field) passwd and > group > files under the chroot directory, so that ls could access them to map > between > the numbers and the names ? > > Cheers, Bob > > > ---- > > I've also compiled ls to be static: > > # ldd ./ls > > not a dynamic executable > > When this static ls is used by WU-FTPD it doesn't even list files or > > directories. > > ----- > > The only way I can get this to work is to copy the entire /lib directory > to > > ~~ftp/lib and use the dynamic ls version. But that is 50 megs of library > > files just to use WU-FTP. > > ---- > > What am I doing wrong?!?!?! > > Please help!! > > Thanks > > -- > Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C" -- Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C"