Chinaunix首页 | 论坛 | 博客
  • 博客访问: 636104
  • 博文数量: 205
  • 博客积分: 7891
  • 博客等级: 少将
  • 技术积分: 2168
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-29 13:16
文章分类

全部博文(205)

文章存档

2015年(4)

2014年(5)

2013年(1)

2012年(4)

2011年(51)

2010年(86)

2009年(45)

2008年(9)

分类: LINUX

2010-07-22 16:01:07


在ubuntu 10.04下安装tftpd-hpa以后,默认的启动选项要求在tftp客户端下载文件时指定绝对路径,如果不指定就提示下面的错误:

Quote:

Error code 2: Only absolute filenames allowed


很麻烦,所以最好是指定一下,办法是修改/etc/default/tftpd-hpa文件,在里头的TFTP_OPTIONS中加上-s选项。


TFTP_OPTIONS
="-s"


该选项的作用(man tftpd):
Quote:

Change root directory on startup. This means the remote host does not need to pass along the directory as part of the transfer, and may add security. When --secure is specified, exactly one directory should be specified on the command line. The use of this option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.


之后关闭并重启tftpd-hpa服务。

Quote:

$ sudo stop tftpd-hpa
$ sudo start tftpd-hpa
阅读(4343) | 评论(0) | 转发(0) |
0

上一篇:解决Rhythmbox乱码

下一篇:安装tweak

给主人留下些什么吧!~~