Find the answer to your Linux question:
Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 33
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?

  2. #2
    are you sure that atftpd has started successfully? it will fail silently, i've found.

    check for it in ps, e.g.:

    Code:
    ps auxww|grep atftpd
    you should also see it in the output of netstat, e.g.:
    Code:
    [root@localhost ~]# netstat -tulnp|grep atftpd
    udp        0      0 0.0.0.0:69              0.0.0.0:*      6479/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:
    atftpd --daemon --user nobody --group nobody /tftpboot
    of course, make sure the user and group you supply exist on your system (check /etc/passwd and /etc/group).

  3. #3
    Quote Originally Posted by atreyu View Post
    are you sure that atftpd has started successfully? it will fail silently, i've found.

    check for it in ps, e.g.:

    Code:
    ps auxww|grep atftpd
    you should also see it in the output of netstat, e.g.:
    Code:
    [root@localhost ~]# netstat -tulnp|grep atftpd
    udp        0      0 0.0.0.0:69              0.0.0.0:*      6479/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:
    atftpd --daemon --user nobody --group nobody /tftpboot
    of course, make sure the user and group you supply exist on your system (check /etc/passwd and /etc/group).
    I performed " ps auxww|grep atftpd" and this is the out:
    1000 2273 0.0 0.0 4212 764 pts/0 S+ 06:04 0:00 grep --color=auto atftpd
    but after I performed "netstat -tulnp|grep atftpd"
    I didn't receive any output

  4. $spacer_open
    $spacer_close
  5. #4
    I could not perform the last line.....e.g:
    atftpd --daemon --user nobody --group nobody /tftpboot

  6. #5
    Quote Originally Posted by mosol2005 View Post
    I performed " ps auxww|grep atftpd" and this is the out:
    1000 2273 0.0 0.0 4212 764 pts/0 S+ 06:04 0:00 grep --color=auto atftpd
    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.

    but after I performed "netstat -tulnp|grep atftpd"
    I didn't receive any output
    and that netstat output says, also, that no instances of atftpd are listening on any local ports.

    i think it is safe to say that your atftpd daemon is not starting at all.

  7. #6
    Quote Originally Posted by mosol2005 View Post
    I could not perform the last line.....e.g:
    atftpd --daemon --user nobody --group nobody /tftpboot
    1. what is the exact error? is it, e.g.:

    Code:
    -bash: atftpd: command not found
    2. are you running it as root (I guess with sudo)? if not, try:

    Code:
    sudo atftpd --daemon --user nobody --group nobody /tftpboot
    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.

    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.

  8. #7
    Quote Originally Posted by atreyu View Post
    1. what is the exact error? is it, e.g.:

    Code:
    -bash: atftpd: command not found
    2. are you running it as root (I guess with sudo)? if not, try:

    Code:
    sudo atftpd --daemon --user nobody --group nobody /tftpboot
    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.

    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.
    with sudo there is no error.actually there is no message.........

  9. #8
    okay, how about this then:

    Code:
    which atftpd
    Code:
    sudo which atftpd
    Code:
    find /bin /sbin/ /usr/bin /usr/sbin -type f -name atftpd
    Code:
    sudo dpkg -L atftpd
    one of those has to work...

  10. #9
    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

  11. #10
    Quote Originally Posted by mosol2005 View Post
    sudo which atftpd
    and the output is:
    /usr/sbin/atftpd
    okay, then try this:
    Code:
    sudo /usr/sbin/atftpd --daemon --user nobody --group nobody /tftpboot
    if it does not output any errors, see if it is running using that ps command again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •