LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 887|回复: 1

RHEL5 Update 1 上 的 tftp服务器不支持符号链接?

[复制链接]
发表于 2007-12-3 12:42:21 | 显示全部楼层 |阅读模式
Redhat Enterprise Linux 5 Update1的[color="Red"]tftp服务器不支持符号链接?

由于环境的需要,需要在tftp服务器的根下,创建一个符号链接指向另外一个目录,但当客户机访问的时候,却提示文件未找到?

服务器上的的信息如下
[root@rhel5 ~]# uname -a
Linux rhel5 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU                                              /Linux

[root@rhel5 ~]# rpm -q tftp-server
tftp-server-0.42-3.1

[root@rhel5 ~]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

创建符号链接指向另外一个目录:
[root@rhel5 tftpboot]# cd /tftpboot

[root@rhel5 tftpboot]# rm /tmp/test/ -rf
[root@rhel5 tftpboot]# mkdir /tmp/test
[root@rhel5 tftpboot]# touch /tmp/test/file1.txt


[root@rhel5 tftpboot]# ln -s /tmp/test test

[root@rhel5 tftpboot]# ll test

lrwxrwxrwx 1 root root 9 Dec  3 10:28 test -> /tmp/test

[root@rhel5 tftpboot]# ls test/ -l
total 0
-rw-r--r-- 1 root root 0 Dec  3 10:28 file1.txt


当客户端访问的时时候:
[root@rhel5 bak]# tftp localhost
tftp> get pxelinux.cfg/default
tftp> get /pxelinux.cfg/default    <--- 其他的文件没有问题

tftp> get test/file1.txt
Error code 1: File not found
tftp> get /test/file1.txt
Error code 1: File not found       <--- 符号连接的文件夹有问题

权限:?

[root@rhel5 tftpboot]# ll /tftpboot/test/
total 4
-rw-r--r-- 1 root root 589 Dec  3 10:50 file1.txt

[root@rhel5 tftpboot]# ll /tftpboot/test
lrwxrwxrwx 1 root root 9 Dec  3 10:28 /tftpboot/test -> /tmp/test



[root@rhel5 tftpboot]# ll /tmp/test
total 4
-rw-r--r-- 1 root root 589 Dec  3 10:50 file1.txt

[root@rhel5 tftpboot]# ll /tmp/test -d
drwxr-xr-x 2 root root 4096 Dec  3 10:28 /tmp/test


百思不得其解? 等下午准备再在 AS4上做一下实验
 楼主| 发表于 2007-12-3 13:00:47 | 显示全部楼层
等不及,刚才就在 AS4上做一下实验

结果是一样的,不支持符号链接 
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表