root@wl ~ # mkdir /tftpboot 1) root@wl ~ # chown nobody:nobody /tftpboot root@wl ~ # vi /etc/inetd.conf 2) tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot root@wl ~ # /usr/sbin/inetconv 3) ... tftp -> /var/svc/manifest/network/tftp-udp6.xml tftp-udp6.xml을(를) 가져오는 중 ...완료 root@wl ~ # svcs svc:/network/tftp/udp6:default 4) ... online 10:04:56 svc:/network/tftp/udp6:default root@wl ~ #1) tftp의 루트 디렉토리이다. tftp데몬은 nobody계정으로 실행되기 때문에 nobody로 접근 가능하도록 권한을 줘야 한다.
root@wl ~ # mkfile 1m tftptestupload root@wl ~ # mkfile 1m /tftpboot/tftptest root@wl ~ # chmod 666 /tftpboot/tftptest root@wl ~ # chown nobody:nobody /tftpboot/tftptest root@wl ~ # touch /tftpboot/tftptestupload 1) root@wl ~ # chmod 666 /tftpboot/tftptestupload root@wl ~ # chown nobody:nobody /tftpboot/tftptestupload root@wl ~ # tftp localhost tftp> bi tftp> get tftptest Received 1048576 bytes in 0.1 seconds tftp> put tftptestupload 1) Sent 1048576 bytes in 0.1 seconds tftp> quit root@wl ~ #1) TFTP에서 업로드는 파일을 덮어쓸뿐이다. 따라서 덮어쓸 파일이 없으면 업로드가 되지 않는다.
|
|
Copyright © 2004-2012 Jo HoSeok. All rights reserved. |