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

    Quote Originally Posted by atreyu View Post
    Did you remove the atftpd package?

    Code:
    dpkg -L atftpd
    Code:
    ls -l /usr/sbin/atftpd
    reinstall it:
    Code:
    sudo apt-get install atftpd
    the output is:...............
    Oct 29 14:26:33 ubuntu atftpd[3476]: Advanced Trivial FTP server started (0.7)
    Oct 29 14:26:33 ubuntu atftpd[3477]: atftpd: invalid IP address
    Oct 29 14:33:46 ubuntu atftpd[3513]: Advanced Trivial FTP server started (0.7)
    Oct 29 14:33:46 ubuntu atftpd[3514]: atftpd: can't change identity to nobody.nobody, exiting.
    Oct 29 14:42:25 ubuntu atftpd[3583]: Advanced Trivial FTP server started (0.7)
    Oct 29 14:42:25 ubuntu atftpd[3584]: atftpd: can't change identity to nobody.nobody, exiting.

  2. #22
    Quote Originally Posted by mosol2005 View Post
    Oct 29 14:42:25 ubuntu atftpd[3584]: atftpd: can't change identity to nobody.nobody, exiting.
    so now it is saying that user nobody, and group nobody do not exist. Strange, they do on my Ubuntu box. try this:
    Code:
    grep nobody /etc/passwd
    egrep 'nobody|nogroup' /etc/group
    if the group doesn't exist, you can add it like this:
    Code:
    sudo groupadd -g 65534 nogroup
    you can add the user like this:
    Code:
    sudo useradd -u 65534 -g nogroup nobody

  3. #23
    Quote Originally Posted by atreyu View Post
    so now it is saying that user nobody, and group nobody do not exist. Strange, they do on my Ubuntu box. try this:
    Code:
    grep nobody /etc/passwd
    output is: nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
    
    egrep 'nobody|nogroup' /etc/group
    output is:nogroup:x:65534:
    if the group doesn't exist, you can add it like this:
    Code:
    sudo groupadd -g 65534 nogroup
    output is:groupadd: group 'nogroup' already exists


    you can add the user like this:
    Code:
    sudo useradd -u 65534 -g nogroup nobody
    output is:useradd: user 'nobody' already exists


    and after grep,there is :
    Oct 30 00:37:39 ubuntu atftpd[3101]: Advanced Trivial FTP server started (0.7)
    Oct 30 00:37:39 ubuntu atftpd[3102]: atftpd: can't change identity to nobody.nobody, exiting.

    really I can't understand...!!!!!!!!!!!

  4. $spacer_open
    $spacer_close
  5. #24
    show the output of this command:
    Code:
    grep nobody /etc/passwd
    and also show the exact command that you running to start atftpd.

  6. #25
    Quote Originally Posted by atreyu View Post
    show the output of this command:
    Code:
    grep nobody /etc/passwd
    and also show the exact command that you running to start atftpd.
    output is:nobody:65534:65534:nobody:/nonexistent:/bin/sh
    the command is:sudo invoke-rc.d atftpd start

  7. #26
    output:nobody: x:65534:65534:nobody:/nonexistent:/bin/sh

  8. #27
    Quote Originally Posted by mosol2005 View Post
    output is:nobody:65534:65534:nobody:/nonexistent:/bin/sh
    Okay, now get the name of nobody's group, based upon the GID (the 65534 in the 4th column of your output) with this command:
    Code:
    awk -F: '$3 ~ /65534/{print $1}' /etc/group
    show the output of this awk command run on your system.

    on my system, it returns nfsnobody, so i'll use that in my example.

    the command is:sudo invoke-rc.d atftpd start
    this is the "proper" way to call services. but for now, don't call it this way, b/c it is using some group name that doesn't exist, i suspect. try this command, but substitute the group name that you determine in the step above for nfsnobody!
    Code:
    sudo /usr/sbin/atftpd --user nobody --group nfsnobody --bind-address your_ip_address --daemon /tftpboot
    also, use your ip address in the above command, obviously.

    now what does /var/log/syslog say?

  9. #28
    sudo groupadd -g 65534 nogroup

    output is:groupadd: group 'nogroup' already exists


    grep nobody /etc/passwd
    output is:nobody:65534:65534:nobody:/nonexistent:/bin/sh

    egrep 'nobody|nogroup' /etc/group
    output is:
    nogroup:65534:

    sudo useradd -u 65534 -g nogroup nobody
    outout is:useradd: user 'nobody' already exists


    awk -F: '$3 ~ /65534/{print $1}' /etc/group
    output is:nogroup


    sudo grep atftpd /var/log/syslog
    output is:Nov 2 01:32:00 ubuntu atftpd[19475]: Advanced Trivial FTP server started (0.7)

  10. #29
    Quote Originally Posted by mosol2005 View Post
    sudo grep atftpd /var/log/syslog
    output is:Nov 2 01:32:00 ubuntu atftpd[19475]: Advanced Trivial FTP server started (0.7)
    so that means it is started, yes? Have you looked for it in ps? Have you tried to attach to it w/atftp? e.g., if you have a test file in /tftpboot/testfile.txt, try:

    Code:
    atftp -g -r testfile.txt your_ip_address 69
    The port (69) might be different, that's the default.

  11. #30
    yeh..I tested.It's working.
    the output of PS is:
    nobody 19476 0.0 0.0 12168 992 ? Ss 01:32 0:00 /usr/sbin/atftpd --user nobody --group nogroup --bind-address 192.168.112.151 --daemon /tftpboot
    1000 19703 0.0 0.0 4392 828 pts/2 S+ 03:51 0:00 grep --color=auto atftpd

    thanks alot

Posting Permissions

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