免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3211 | 回复: 9
打印 上一主题 下一主题

[FTP] 系统自带的ftp如何取消? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-27 23:27 |只看该作者 |倒序浏览
我原来的系统的安装时就已经启用了ftp服务,也可以正常上传下传的

我的系统是solaris10,我现在装proftp软件后,它并没有随系统启动
我使用的ftp还是系统原来老的,新装的没有起作用。

听说standalone方式比较安全,所以我设置的是这种方式启动

但是我却没办法用我新的软件
请问如何取消原来的ftp服务,而且使用我新的?

论坛徽章:
0
2 [报告]
发表于 2005-10-28 00:17 |只看该作者

系统自带的ftp如何取消?

没有人知道吗?
帮忙研究一下,我试了很多次,不知道如何取消原来的ftp
当我在/etc/services中注释掉ftp服务时,系统启动要报错,而且ftp不能使用
如果不取消,又只能使用原来的ftp,我的proftp不能使用,怎么办?

另外再问个问题:welcome.msg文件放在哪才能在登录时显示出来?

论坛徽章:
0
3 [报告]
发表于 2005-10-28 10:24 |只看该作者

系统自带的ftp如何取消?

找到原来启动的脚本,把它停了就行了.

solaris我不太清楚,Linux一般是/etc/init.d/下面的和/etc/rc.d/rc.local这里面.

welcome.msg一般是放在用户主目录下面.

论坛徽章:
0
4 [报告]
发表于 2005-10-28 12:12 |只看该作者

系统自带的ftp如何取消?

thanks

i try it.

论坛徽章:
0
5 [报告]
发表于 2005-10-28 16:19 |只看该作者

系统自带的ftp如何取消?

solaris8
root@ultra10#more inetd.conf

ftp     stream  tcp     nowait  root    /usr/local/sbin/in.ftpd in.ftpd
注释掉就可以了,或者是把/usr/local/sbin/in.ftpd in.ftpd改成你的ftp程序,估计10和8会有区别的。

论坛徽章:
0
6 [报告]
发表于 2005-10-28 22:03 |只看该作者

系统自带的ftp如何取消?

谢谢楼上,好像按你的方法,系统原来的ftp是停掉了
但是并没有启动我自己安装的,我已经将/usr/sbin/in.ftpd换成了解自己的ftp的一个link,我手动执行是可以的,系统启动没有自动运行
另外,我的系统中,在/etc/inetd.conf中没有上面那一行,只有下面这行:
#tftp    dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tft

而且本来就是注释掉的
怎么回事?

论坛徽章:
0
7 [报告]
发表于 2005-10-28 22:06 |只看该作者

系统自带的ftp如何取消?

另外,好像welcome.msg我放在ftp根目录下,并不起作用?
我已经在proftpd.conf中指明了它的啊
<Anonymous /home/web/ftp>;
  User                          ftp
  Group                         ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp
  AnonRequirePassword           on

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  /usr/local/proftpd/etc/welcome.msg
  DisplayFirstChdir             .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>;
    DenyAll
  </Limit>;
</Anonymous>;

我都用绝对路径指定了还是不行

论坛徽章:
0
8 [报告]
发表于 2005-10-30 01:07 |只看该作者

系统自带的ftp如何取消?

The configured file paths can be either relative or absolute (except in the case of DisplayConnect, which always requires absolute paths). In the case of a relative path, the file is assumed to be in the starting directory a user, i.e. the <Anonymous>; directory for anonymous logins, and the user's home directory for non-anonymous logins. Note: If DefaultRoot is in effect, then the file must reside inside the chrooted directory. If the configured file cannot be found or accessed, no error occurs and nothing is logged or displayed to the client.

论坛徽章:
0
9 [报告]
发表于 2005-10-30 23:30 |只看该作者
楼上兄弟,你那全是英文的,我理解不到,怕把意思领会错了,你就直接说,我错在哪吧

论坛徽章:
0
10 [报告]
发表于 2005-10-31 09:51 |只看该作者
把welcome.msg放到/home/web/ftp目录下
配置文件里改成
DisplayLogin             welcome.msg
试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP