|
先建立ftp用户,sh用rsh,再把下面第二步中命令粘贴到记事本另存至ftp目录下,执行就行完成了,是不是很简单,已经经我测试修改了!!
谁有sense汉字系统请告诉我,sdccf主页上的已经不能下载了
Setting up anonymous ftp
1.Create a user called ftp with the Account Manager. Do not set a password for the account. Most importantly, set the login shell to rsh© to deny access to the rest of the system.
2.Run the following to set up directories below ftp's home directory:
chmod 755 .; chown root .; chgrp root . mkdir bin dev etc lib pub pub/up pub/down usr usr/lib usr/bin chown root bin etc dev lib usr usr/lib usr/bin chmod 555 bin etc dev lib usr usr/lib usr/bin pub/down chown ftp pub pub/* chmod 777 pub pub/up cd bin cp /bin/ls . chmod 111 ls cd ../usr/bin cp /usr/bin/tar /usr/bin/compress . chmod 111 * cd ../../etc cp /etc/passwd . cp /etc/group . chmod 444 passwd group cd ../lib cp /lib/libprot.so.1 . chmod 555 lib* chown bin lib* cd ../usr/lib cp /usr/lib/libc.so.1 . cp /usr/lib/libm.so.1 . cp /usr/lib/libcurses.so.1 . cp /usr/lib/libsocket.so.1 . cp /usr/lib/libsocket.so.2 . cp /usr/lib/libresolv.so.1 . chmod 555 lib* chown bin lib* cd ../.. find /dev/socksys -print | cpio -dumpv . find /dev/zero -print | cpio -dumpv . rm /usr/internet/ip/0.0.0.0/sco_ftp ln -s `pwd` /usr/internet/ip/0.0.0.0/sco_ftp
3. Files put in the anonymous area by local users must be placed in a subdirectory. In the setup described here, the directory ~ftp/pub is used.
WARNING: Another issue to consider is the /etc/passwd file placed in ~/ftp/etc/passwd. Because anonymous ftp does not actually use the password stored in the encrypted password field, you should edit the copied file to contain blanks in this field such that anonymous users cannot obtain the encrypted passwords.
For example, you could edit the following line in ~/ftp/etc/passwd:
root:UDOkW7PLd1/ZQ,..EI:0:3:Superuser:/:
to read:
root::0:3:Superuser:/:
The ftp server provides a security loophole if certain user accounts are allowed. To prevent this, the file /etc/ftpusers is checked on each connection. If the requested user name is located in the file, the request for service is denied. This file should be owned by root in the sys group, have permissions set to 444, and contain at least the following names:
uucp root
Accounts with nonstandard shells should be listed in this file. Accounts without passwords need not be listed in this file; the ftp server does not service these users.
|