- 论坛徽章:
- 0
|
来源:
Help--Networking Documentation Set,Networking Guide
Chapter 3,Administering TCP/IP,Setting up anonymous ftp
下面是我写的批处理:
useradd ftp
cd /
rm /usr/internet/ip/0.0.0.0/sco_ftp
ln -s /ftp /usr/internet/ip/0.0.0.0/sco_ftp
mkdir /ftp
cd /ftp
chmod 755 .;chown root .;chgrp root .
mkdir bin dev etc lib pub usr usr/lib
chown root bin etc dev lib usr usr/lib
chmod 555 bin etc dev lib usr usr/lib
chown ftp pub
chmod 777 pub
cd bin
cp /bin/ls .
chmod 111 ls
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/libsocket.so.1 .
chmod 555 lib*
chown bin lib*
find /dev/socksys -print | cpio -dumpv /ftp
find /dev/zero -print | cpio -dumpv /ftp /ftp是主目录,你可以换成你自己的,其中pub目录可读写
下面是我的批处理压缩文件:
[ 本帖最后由 lzy_chinaunix 于 2006-3-31 11:13 编辑 ] |
|