Thursday 6 December 2007

opensolaris tftp server

According to the in.tftpd manpage, in.tftpd is being managed by smf(5), which is well, true. The problem is that it’s not there if you issue svcs|grep tftpd.
I don’t know the reason why it’s not configured (but disabled) but, because of compatibility with older versions of “add_install_client” and “setup_install_server”, tftp needs to be listed in /etc/inet/inetd.conf; so that’s where a fresh install should put the command.

Add this to /etc/inetd.conf to configure tftpd:
TFTPD - tftp server
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot

Make your changes active:
root@opensolaris:/# inetconv
root@opensolaris:/# svcs | grep tftp
online 16:15:58 svc:/network/tftp/udp6:default
The tftp service is now enabled and available.
You can enable using inetadm -e svc:/network/tftp/udp6 and disable with inetadm -d svc:/network/tftp/udp6

1 comment:

Anonymous said...

Thanks a lot... I tried 5 or 6 other solutions I found googeling... But only this worked... Thanks a lot...