如何建一anonymous用户用于ftp,只是ftp用户,锁定于一目录下,只允许list,
download,upload等功能,怎样才能实现?wait...
diuss 回复于:2003-06-16 17:49:15 |
首先你去ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-current.tar.gz
下载一个wu-ftpd的软件 这个软件支持tru64unix tar zxvf wu-ftpd-current.tar.gz 进入目录 ./configure make make install . 接下修改 /etc/.netd.conf, 以使 WU-FTPD 可以由 超级 Internet 服务器 启动. 方法如下: cd /etc (进入 /etc 目录) vi inetd.conf (编译 超级 Internet 服务器 的配置文件) 打入 "/ftp 回车" (注意引号不用打, 此语句的目的是查找 inetd.conf 中有 ftp 的行) 找到后查看行首是否有 # 号, 如果有的话, 将 # 号删除. 如果使用 vi 找不到 ftp 的行, 就需要手工的在 vi 中添加下面的一行: ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a 使用 ftp localhost 呵呵~~这样就安装成功了 wu-ftpd网上使用手册很多。你自己看一下吧 |
diuss 回复于:2003-06-16 17:54:24 |
还有一个办法
你可以安装Open Source Internet Solutions ,order number QB-3NCAA-SA 。你可以咨询一下compaq.用这个操作起来比较简单 |
supsyg 回复于:2003-06-17 18:15:31 |
谢谢diuss,我去试试! |
supsyg 回复于:2003-06-18 10:45:10 |
./configure
没有完全配置成功,make & make install也进行不下去啦! 还请大侠再指教一二; 另外,我要建的是anonymous用户,而非ftp软件,tru64本身自带ftp! 谢谢! |
yang034 回复于:2003-06-24 13:18:13 |
1 Add a new user ftp,pass anonymous. Edit the /etc/passwd file ,
like this. ftp:mEFyvztssXGZk:269:79:anonymous ftp:/usr/ftp:/usr/ucb/ftp 2 Setup new directories for the ftp account. A) # cd /usr/ftp B) # mkdir etc pub C) # cp /sbin/ls /usr/ftp/bin D) # cp /etc/passwd /usr/ftp/etc E) # cp /etc/group /usr/ftp/etc F) # cp /etc/svc.conf /usr/ftp/etc G) # chown -R ftp * H) # chown ftp /usr/ftp I) # chmod -w /usr/ftp J) # chmod 111 /usr/ftp/bin/ls K) # chmod -w /usr/ftp/bin L) # chmod 444 /usr/ftp/etc M) # chmod -w /usr/ftp/etc N) # chmod 755 /usr/ftp/pub Files will be put in /usr/ftp/pub. 3 test Name (nodename::username): anonymous Password: anonymous |
supsyg 回复于:2003-06-26 14:31:38 |
非常感谢!yang034 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/