本版版主招募中

 
标题: openserver507匿名ftp建立方法zt
紫枫猪猪
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14
拱圈猪神


UID 230
精华 8
积分 489
帖子 920
活跃指数 40
LU金币 2530 个
LU金条 0 个
阅读权限 200
注册 2003-9-29
来自 成都
 
发表于 2003-9-29 18:45  资料  个人空间  短消息  加为好友  添加 紫枫猪猪 为MSN好友 通过MSN和 紫枫猪猪 交谈
先建立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.





刚含苞,欲绽放。
顶部
 



当前时区 GMT+8, 现在时间是 2008-8-30 09:57
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.077990 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver