发信人: tcpip (俺的昵称改了), 信区: cnunix
标 题: Re:Anonymous Ftp
发信站: 哈工大紫丁香 (Sun Sep 26 14:28:56 1999), 转信
发信人: Xiong Ying @kapok (), 信区: Solaris
发信站: (Fri Jun 21 16:41:42 1996)
转信站: kapok (local)
> Mon Jun 10 22:11:15 1996
> From: 陈挺 (lcj@jnu.edu.cn)
> I configured the Anonymous ftp server following the instruction
> of the mannual of ftpd in sun/sparc Solaris 2.4, and I can login
> using Anonymous account, but it is impossible for me to list the
> files. When I type in ls command, It list nothing, though there
> are files in the home of ftp account. what is matter? who can
> tell me?
You must do the flowing:
1. Create ~ftp/dev directory and use mknode to create device:
crw-rw-rw- 1 root 11, 42 Nov 27 1995 tcp
crw-rw-rw- 1 root 11, 41 Nov 27 1995 udp
crw-rw-rw- 1 root 13, 12 Nov 27 1995 zero
You must use mknod command, cannot just copy.
2. Create ~ftp/usr/bin directory, copy /usr/bin/ls into it.
make it excutable:
---x--x--x 1 root 20040 Nov 27 1995 ls*
You must copy it, you cannot just create links.
3. Create ~ftp/usr/lib directory, copy the flowing files from
/usr/lib into it:
-r-xr-xr-x 1 root 97804 Nov 27 1995 ld.so.1*
lrwxrwxrwx 1 root 11 Nov 27 1995 libc.so -> ./libc.so.1
-r-xr-xr-x 1 root 621356 Nov 27 1995 libc.so.1*
lrwxrwxrwx 1 root 12 Nov 27 1995 libdl.so -> ./libdl.so.1
-r-xr-xr-x 1 root 3492 Nov 27 1995 libdl.so.1*
lrwxrwxrwx 1 root 14 Nov 27 1995 libintl.so -> ./libintl.so.1
-r-xr-xr-x 1 root 13516 Nov 27 1995 libintl.so.1*
lrwxrwxrwx 1 root 13 Nov 27 1995 libnsl.so -> ./libnsl.so.1
-r-xr-xr-x 1 root 508896 Nov 27 1995 libnsl.so.1*
lrwxrwxrwx 1 root 16 Nov 27 1995 libsocket.so -> ./libsocket.so.1
-r-xr-xr-x 1 root 73100 Nov 27 1995 libsocket.so.1*
lrwxrwxrwx 1 root 11 Nov 27 1995 libw.so -> ./libw.so.1
-r-xr-xr-x 1 root 41704 Nov 27 1995 libw.so.1*
lrwxrwxrwx 1 root 14 Nov 27 1995 nss_dns.so -> ./nss_dns.so.1
-r-xr-xr-x 1 root 10796 Nov 27 1995 nss_dns.so.1*
lrwxrwxrwx 1 root 16 Nov 27 1995 nss_files.so -> ./nss_files.so.1
-r-xr-xr-x 1 root 18496 Nov 27 1995 nss_files.so.1*
lrwxrwxrwx 1 root 14 Nov 27 1995 nss_nis.so -> ./nss_nis.so.1
-r-xr-xr-x 1 root 25840 Nov 27 1995 nss_nis.so.1*
lrwxrwxrwx 1 root 18 Nov 27 1995 nss_nisplus.so -> ./nss_nisplus.so.1
-r-xr-xr-x 1 root 29376 Nov 27 1995 nss_nisplus.so.1*
lrwxrwxrwx 1 root 14 Nov 27 1995 straddr.so -> ./straddr.so.2
-r-xr-xr-x 1 root 9436 Nov 27 1995 straddr.so.2*
You must keep the symbol links.
4. Create Symbol links in ~ftp/:
lrwxrwxrwx 1 root 7 Nov 27 1995 bin -> usr/bin/
5. Create ~ftp/etc, copy the following files from /etc:
-r--r--r-- 1 root 324 Nov 27 1995 group
-r--r--r-- 1 root 1064 Nov 27 1995 netconfig
-r--r--r-- 1 root 15778 Nov 27 1995 passwd
You should only keep the user and group used in this ~ftp
directory tree in group and passwd file.
Regards,
--
※ 修改:.trueip 于 Sep 26 14:32:43 修改本文.[FROM: dns.mtlab.hit.ed]
--
※ 转寄:.华南网木棉站 bbs.gznet.edu.cn.[FROM: dns.mtlab.hit.ed]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: trueip.bbs@melon.gzn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.452毫秒