spezticle |
04-22-2012 03:51 PM |
atftpd
how do you configure atftpd?
no matter what I do, i can not get the path to be anything except /srv/tftp
/tftpboot exists and has 777
also,
--no-blksize doesn't work either.
i've edited /etc/default/atftpd
as well as /etc/inetd.conf
i can't find any other configuration files. I've even just tried to run atftpd standalone, but that doesn't work, either.
Code:
[15:35:12]root@server:~$ atftpd --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --no-blksize --mcast-ttl 1 --maxthread 100 --verbose=5 /mytftpdirecrory777
Usage: tftpd [options] [directory]
[options] may be:
-t, --tftpd-timeout <value>: number of second of inactivity before exiting
-r, --retry-timeout <value>: time to wait a reply before retransmition
-m, --maxthread <value> : number of concurrent thread allowed
-v, --verbose [value] : increase or set the level of output messages
--trace : log all sent and received packets
--no-timeout : disable 'timeout' from RFC2349
--no-tsize : disable 'tsize' from RFC2349
--no-blksize : disable 'blksize' from RFC2348
--no-multicast : disable 'multicast' from RFC2090
--logfile <file> : logfile to log logs to ;-)
--pidfile <file> : write PID to this file
--listen-local : force listen on local network address
--daemon : run atftpd standalone (no inetd)
--no-fork : run as a daemon, don't fork
--user <user[.group]> : default is nobody
--group <group> : default is nogroup
--port <port> : port on which atftp listen
--bind-address <IP> : local address atftpd listen to
--mcast-ttl : ttl to used for multicast
--mcast-addr <address list>: list/range of IP address to use
--mcast-port <port range> : ports to use for multicast transfer
--pcre <file> : use this file for pattern replacement
--pcre-test <file> : just test pattern file, not starting server
--mtftp <file> : mtftp configuration file
--mtftp-port <port> : port mtftp will listen
--no-source-port-checking : violate RFC, see man page
--mcast-switch-client : switch client on first timeout, see man page
-V, --version : print version information
-h, --help : print this help
[directory] must be a world readable/writable directories.
By default /tftpboot is assumed.
Code:
[15:44:30]root@server:~$ tail -n 1000 /etc/default/atftpd
USE_INETD=false
OPTIONS="--tftpd-timeout 300 --no-blksize --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /mytftpdirecrory777 "
as you can see, i've searched for every instance of /srv/tftp and it only comes up once in that file
Code:
[15:48:07]root@server:/etc$ ls -a |grep /srv/tftp * -R
grep: blkid.tab: No such file or directory
default/atftpd:OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --no-blksize --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /mytftpdirecrory777 "
grep: fonts/conf.d/30-defoma.conf: No such file or directory
i also tried dpkg-reconfigure atftpd
which prompted me for many configuration options including port number, and server path, and log file. i changed the path of the log file. this worked. nothing else did. wtf atftpd?
|