|
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上做一下实验 |
|