Chinaunix

标题: tftp 问题 [打印本页]

作者: tstt    时间: 2003-06-03 10:00
标题: tftp 问题
在sco506上配置了一个tftp服务,但只能get,不能put。
出错提示:
Error code 2: Access violation


我的inted.conf内容:


#      @(#)$Id: inetd.conf,v 6.8 1996/01/09 21:48:54 aes Exp $ - STREAMware TCP/
IP  source
#
# Copyrighted as an unpublished work.
# (c) Copyright 1987-1994 Legent Corporation
# All rights reserved.
#
#      SCCS IDENTIFICATION
ftp     stream  tcp     nowait  root    /etc/ftpd       ftpd
telnet  stream  tcp     nowait  NOLUID  /etc/telnetd    telnetd
shell   stream  tcp     nowait  NOLUID  /etc/rshd       rshd
login   stream  tcp     nowait  NOLUID  /etc/rlogind    rlogind
exec    stream  tcp     nowait  NOLUID  /etc/rexecd     rexecd
finger  stream  tcp     nowait  nouser  /etc/fingerd    fingerd
#uucp   stream  tcp     nowait  NOLUID  /usr/lib/uucp/uucpd     uucpd
# Enabling this allows public read files to be accessed via TFTP.
#tftp   dgram   udp     wait    nouser  /etc/tftpd      tftpd
# This is the more secure method, since only files from /tftpboot can
# be accessed via TFTP.   This must be root in order to do the chroot
# to /tftpboot.  /tftpboot must be created by hand.
#tftp   dgram   udp     wait    root    /etc/tftpd      tftpd -s /tftpboot
tftp    dgram   udp     wait    root    /etc/tftpd      tftpd -s /tmp
comsat  dgram   udp     wait    root    /etc/comsat     comsat
ntalk   dgram   udp     wait    nouser  /etc/talkd      talkd
#
# Entries for BOOTP and DHCP servers & relay agent
#
# If running tftpd in secure mode, use bootpd with "-c securedir"
# where securedir is the argument to tftpd -s.
#
# To run bootpd by itself, use:
#bootps dgram   udp     wait    root    /etc/bootpd     bootpd
bootps  dgram   udp     wait    root    /etc/bootpd     bootpd -c /tmp
#
# To run dhcpd by itself, use:
#bootps dgram/i udp     wait    root    /etc/dhcpd      dhcpd
#
# When running dhcpd and bootpd, bootpd must be run in "slave mode" (with the
# -S option).  In this mode, bootpd listens on an alternate port.  The port
# bootps-alt is defined to be 950 in /etc/services, but it can be anything
# < 1024.  To run dhcpd and bootpd, use the following two lines:
#bootps dgram/i udp     wait    root    /etc/dhcpd      dhcpd -b bootps-alt
#bootps-alt dgram udp   wait    root    /etc/bootpd     bootpd -S
#
# To run the BOOTP/DHCP relay agent bootpgw, use:
#bootps dgram/i udp     wait    root    /etc/bootpgw    bootpgw server-name
#
tcpmux  stream  tcp     nowait  root    internal
echo    stream  tcp     nowait  root    internal
discard stream  tcp     nowait  root    internal
chargen stream  tcp     nowait  root    internal
daytime stream  tcp     nowait  root    internal
time    stream  tcp     nowait  root    internal
echo    dgram   udp     wait    root    internal
discard dgram   udp     wait    root    internal
chargen dgram   udp     wait    root    internal
daytime dgram   udp     wait    root    internal
time    dgram   udp     wait    root    internal
作者: simonzhan    时间: 2003-06-03 10:17
标题: tftp 问题
把这一行的#去掉吧:#tftp dgram udp wait nouser /etc/tftpd tftpd
把原来的一行屏蔽掉
作者: yanguo66    时间: 2003-06-03 14:10
标题: tftp 问题
在sco506上配置了一个tftp服务,但只能get,不能put。 出错提示:
Error code 2: Access violation 时,必须在TFTP服务器的目录中用touch filename建立欲put的filename文件(字节为0),chmod 777 filename即可.
作者: tstt    时间: 2003-06-03 16:38
标题: tftp 问题
方法虽行,但不能每次都建一个文件吧?




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