Results 1 to 10 of 33
I'm trying to install atftp....I'm using following steps:
sudo aptitude install atftpd
sudo gedit /etc/default/atftpd
Change the following line
USE_INETD=true
to
USE_INETD=false
save and exit the file
sudo invoke-rc.d atftpd ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-21-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 26
installing atftp??
I'm trying to install atftp....I'm using following steps:
sudo aptitude install atftpd
sudo gedit /etc/default/atftpd
Change the following line
USE_INETD=true
to
USE_INETD=false
save and exit the file
sudo invoke-rc.d atftpd start
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/atftpd restart
sudo aptitude install atftp
touch /tftpboot/hda.txt
chmod 777 /tftpboot/hda.txt
ls -l /tftpboot/
total 0
-rwxrwxrwx 1 ruchi ruchi 223 hda.txt
atftp xxx.yyy.zzz.aaa
but after
tftp>put hda.txt
it says that:
time out:retrying...
what must I do?
- 10-23-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695
are you sure that atftpd has started successfully? it will fail silently, i've found.
check for it in ps, e.g.:
you should also see it in the output of netstat, e.g.:Code:ps auxww|grep atftpd
if it is not running, check /var/log/messages for errors pertaining to it. on my system, i did have to supply existing user and group information, e.g.:Code:[root@localhost ~]# netstat -tulnp|grep atftpd udp 0 0 0.0.0.0:69 0.0.0.0:* 6479/atftpd
of course, make sure the user and group you supply exist on your system (check /etc/passwd and /etc/group).Code:atftpd --daemon --user nobody --group nobody /tftpboot
- 10-23-2012 #3Just Joined!
- Join Date
- Oct 2012
- Posts
- 26
- 10-23-2012 #4Just Joined!
- Join Date
- Oct 2012
- Posts
- 26
I could not perform the last line.....e.g:
atftpd --daemon --user nobody --group nobody /tftpboot
- 10-24-2012 #5Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695
that ps output says that no instance of atftp was found. only the "grep atftpd" that you piped the output of ps to was found.
and that netstat output says, also, that no instances of atftpd are listening on any local ports.but after I performed "netstat -tulnp|grep atftpd"
I didn't receive any output
i think it is safe to say that your atftpd daemon is not starting at all.
- 10-24-2012 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695
1. what is the exact error? is it, e.g.:
2. are you running it as root (I guess with sudo)? if not, try:Code:-bash: atftpd: command not found
but you need to know where atftpd is located, if it is not in root's path. it should be in /sbin or /usr/sbin.Code:sudo atftpd --daemon --user nobody --group nobody /tftpboot
also remember that you need to specify an existing user and group account in the atftpd command: don't assume user nobody and group nobody exist on your system.
- 10-24-2012 #7Just Joined!
- Join Date
- Oct 2012
- Posts
- 26
- 10-25-2012 #8Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695
okay, how about this then:
Code:which atftpd
Code:sudo which atftpd
Code:find /bin /sbin/ /usr/bin /usr/sbin -type f -name atftpd
one of those has to work...Code:sudo dpkg -L atftpd
- 10-25-2012 #9Just Joined!
- Join Date
- Oct 2012
- Posts
- 26
output of the following commands are the same:
which atftpd
find /bin /sbin/ /usr/bin /usr/sbin -type f -name atftpd
sudo which atftpd
and the output is:
/usr/sbin/atftpd
the output of the sudo dpkg -L atftpd is:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/atftpd
/usr/share/doc/atftpd/FAQ.gz
/usr/share/doc/atftpd/README
/usr/share/doc/atftpd/TODO
/usr/share/doc/atftpd/BUGS
/usr/share/doc/atftpd/copyright
/usr/share/doc/atftpd/README.CVS
/usr/share/doc/atftpd/README.MCAST
/usr/share/doc/atftpd/README.Debian
/usr/share/doc/atftpd/mtftp.conf
/usr/share/doc/atftpd/changelog.Debian.gz
/usr/share/doc/atftpd/README.PCRE
/usr/share/doc/atftpd/pcre_pattern.txt
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/atftpd.8.gz
/usr/sbin
/usr/sbin/atftpd
/etc
/etc/init.d
/etc/init.d/atftpd
/usr/share/man/man8/in.tftpd.8.gz
/usr/sbin/in.tftpd
- 10-26-2012 #10Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695


1Likes


