From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d925d32335349590,start X-Google-Attributes: gidfee84,public From: fryja@rs6a.wln.com (Jason K Fry) Subject: Re: HELP: dir problem for wu-ftpd Date: 1995/07/11 Message-ID: <3tu53q$ce7@calliope.wln.com>#1/1 X-Deja-AN: 106000908 references: <3tshnm$4pj@alpha.cc.tit.edu.tw> organization: WLN newsgroups: comp.unix.osf.osf1 Jyh-Shan Michael Chang (3123) (michael@alpha.cc.tit.edu.tw) wrote: : Saul Tannenbaum (stannenb@emerald.tufts.edu) wrote: : : wu-ftpd works in a chroot'ed environment. You need to make sure that the : : version of ls you put in its area is the statically linked binary : : /sbin/ls and not /bin/ls, which won't be able to find its libraries. : Thanks to you. The 'dir' is working. But it only display uid and gid : as : ftp> dir : 200 PORT command successful. : 150 Opening ASCII mode data connection for /bin/ls. : total 24 : drwxr-xr-x 25 99 999 512 Jun 21 00:28 PC : drwxr-xr-x 2 99 999 512 Jun 10 17:57 UNIX : d--x--x--x 3 99 999 512 Jul 5 15:51 bin : drwxr-xr-x 2 99 999 512 Jun 29 17:02 dev : drwxr-xr-x 4 99 999 512 Jul 5 15:54 etc : drwx------ 6 99 999 512 Jun 29 17:05 usr : -rw-r--r-- 1 99 999 498 Jun 9 15:05 welcome.msg : 226 Transfer complete. : ftp> 221 Goodbye. : How can I make it to display user name and group name? : Thanks again! You need to create a passwd file under the /etc directory of your ftp chrooted directory. (~/ftp/etc/passwd). This should not be your real password file. All encrypted passwords in the fake passwd file should be replaced with an *. You only need the users that own files under the ftp directory in this passwd file. Sample entry: root:*:0:1:Big Brother:/: This file should be mode 111 (only read access to everyone). Hope This Helps Jason