Chinaunix

标题: 系统自带的ftp如何取消? [打印本页]

作者: yourkeychen    时间: 2005-10-27 23:27
标题: 系统自带的ftp如何取消?
我原来的系统的安装时就已经启用了ftp服务,也可以正常上传下传的

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

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

但是我却没办法用我新的软件
请问如何取消原来的ftp服务,而且使用我新的?
作者: yourkeychen    时间: 2005-10-28 00:17
标题: 系统自带的ftp如何取消?
没有人知道吗?
帮忙研究一下,我试了很多次,不知道如何取消原来的ftp
当我在/etc/services中注释掉ftp服务时,系统启动要报错,而且ftp不能使用
如果不取消,又只能使用原来的ftp,我的proftp不能使用,怎么办?

另外再问个问题:welcome.msg文件放在哪才能在登录时显示出来?
作者: ipaddr    时间: 2005-10-28 10:24
标题: 系统自带的ftp如何取消?
找到原来启动的脚本,把它停了就行了.

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

welcome.msg一般是放在用户主目录下面.
作者: yourkeychen    时间: 2005-10-28 12:12
标题: 系统自带的ftp如何取消?
thanks

i try it.
作者: bj_solarisfan    时间: 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会有区别的。
作者: yourkeychen    时间: 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

而且本来就是注释掉的
怎么回事?
作者: yourkeychen    时间: 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>;

我都用绝对路径指定了还是不行
作者: wolfg    时间: 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.
作者: yourkeychen    时间: 2005-10-30 23:30
楼上兄弟,你那全是英文的,我理解不到,怕把意思领会错了,你就直接说,我错在哪吧
作者: wolfg    时间: 2005-10-31 09:51
把welcome.msg放到/home/web/ftp目录下
配置文件里改成
DisplayLogin             welcome.msg
试试




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2