* Re: HELP: dir problem for wu-ftpd
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)
0 siblings, 1 reply; 4+ messages in thread
From: Saul Tannenbaum @ 1995-07-03 4:00 UTC (permalink / raw)
In article <3ta7cj$f65@alpha.cc.tit.edu.tw>, Jyh-Shan Michael Chang (3123) (michael@alpha.cc.tit.edu.tw) wrote:
> I have installed wu-ftpd on OSF 3.0. It seems to work. But there is
> one problem. The 'dir' works for real user. But when login with
> ftp or anonymous account it fail to response:
[...]
> Has anyone experienced the same problem? Any sugguestion is appreciated.
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.
- Saul
--
--
Saul Tannenbaum, Manager, Academic Systems | "It's still rocket
stannenb@emerald.tufts.edu | science" - Vint Cerf
Tufts University Computing and |
Communications Services |
^ permalink raw reply [flat|nested] 4+ messages in thread
* HELP: dir problem for wu-ftpd
@ 1995-07-04 4:00 Jyh-Shan Michael Chang (3123)
1995-07-03 4:00 ` Saul Tannenbaum
0 siblings, 1 reply; 4+ messages in thread
From: Jyh-Shan Michael Chang (3123) @ 1995-07-04 4:00 UTC (permalink / raw)
I have installed wu-ftpd on OSF 3.0. It seems to work. But there is
one problem. The 'dir' works for real user. But when login with
ftp or anonymous account it fail to response:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
UNIX
bin
etc
gnu
usr
welcome.msg
Chinese
Operating-Systems
PC
dev
226 Transfer complete.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
Has anyone experienced the same problem? Any sugguestion is appreciated.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP: dir problem for wu-ftpd
1995-07-11 4:00 ` Jyh-Shan Michael Chang (3123)
@ 1995-07-11 4:00 ` Jason K Fry
0 siblings, 0 replies; 4+ messages in thread
From: Jason K Fry @ 1995-07-11 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP: dir problem for wu-ftpd
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
0 siblings, 1 reply; 4+ messages in thread
From: Jyh-Shan Michael Chang (3123) @ 1995-07-11 4:00 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-07-11 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox