Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: fryja@rs6a.wln.com (Jason K Fry)
Subject: Re: HELP: dir problem for wu-ftpd
Date: 1995/07/11	[thread overview]
Message-ID: <3tu53q$ce7@calliope.wln.com> (raw)
In-Reply-To: 3tshnm$4pj@alpha.cc.tit.edu.tw

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



      reply	other threads:[~1995-07-11  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-04  4:00 HELP: dir problem for wu-ftpd Jyh-Shan Michael Chang (3123)
1995-07-03  4:00 ` Saul Tannenbaum
1995-07-11  4:00   ` Jyh-Shan Michael Chang (3123)
1995-07-11  4:00     ` Jason K Fry [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox