Find the answer to your Linux question:
Page 7 of 12 FirstFirst ... 3 4 5 6 7 8 9 10 11 ... LastLast
Results 61 to 70 of 120
ok, with the modified command new strace.log - Pastebin.com...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #61
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61

    ok, with the modified command
    new strace.log - Pastebin.com

  2. #62
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    You forgot to terminate a previous session?? * points down *

    Quote Originally Posted by Herculeon's strace log
    [pid 1820] bind(3, {sa_family=AF_INET, sin_port=htons(5555), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
    [pid 1820] fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
    [pid 1820] fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
    [pid 1820] write(0, "500 OOPS: ", 10) = 10
    [pid 1820] write(0, "could not bind listening IPv4 so"..., 36) = 36
    You can find processes and pids with: lsof -itcp@0.0.0.0:5555 . Probably need root for this.

  3. #63
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    why, yes! yes I did forget to terminate the previous session!! LOL
    sorry about that.

    Try this one:
    new strace.log - Pastebin.com

  4. #64
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Did you try to connect to it with the above trace? And did you receive the same error? I'm not seeing that much. But that could be just all there is.

  5. #65
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    Yes, I just tried a connection again so I could copy the exact text out.

    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
    Error: Critical error
    Error: Could not connect to server


    Say, here is a dumb question. The command you gave me, I ran it as su. Should I run it as a normal user? I might know 1 or 2 things about *nix and still a relative newb but I am just trying to make sure I am not making a rudimentary mistake.

  6. #66
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Yes please do. I made this command JUST to run it as a normal user. The error you are receiving is probably bogus.

  7. #67
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    Ok, here it is run as a normal user
    as normal user - Pastebin.com

    However, filezilla still shows:

    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
    Error: Critical error
    Error: Could not connect to server

  8. #68
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Strace get's us nowhere. Run the following commands as a normal user:

    touch /tmp/emptyconfig
    /usr/sbin/vsftpd -olisten_port=5555 -opasv_min_port=5556 -opasv_max_port=5557 -oport_enable=NO \
    -olisten=true -orun_as_launching_user=true -oanon_world_readable_only=false -odual_log_enable=yes \
    -olog_ftp_protocol=yes -ovsftpd_log_file=/tmp/vsftpd.log -oxferlog_file=/tmp/vsftpd.log -owrite_enable=true \
    -oanon_upload_enable=true -oanon_mkdir_write_enable=true -oanon_other_write_enable=true -oseccomp_sandbox=no \
    -olocal_enable=no /tmp/emptyconfig | tail -F /tmp/vsftpd.log
    EDIT: Forgot to create the appropate files. Confirm in your reply that you did 'touch /tmp/emptyconfig' before running vsftpd! (please)

  9. #69
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    I did
    touch ~/.emptyconfig
    touch ./vsftpd.log
    touch /tmp/emptyconfig

    I did the command and got no output. rebooted even did the three touches again still no output. rebooted and did it again, hoping something would catch and still no output. Nothing in the vsftp.log in the the tmp directory and/or in the directory I ran the commands from. The emptyconfig was in fact empty. It does say "500 OOPS: cannot read config file: tail" when I run the command you requested.

  10. #70
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    You have to make sure that the user running vsftpd can read the file '/tmp/emptyconfig' and has read/write to the file '/tmp/vsftpd.log'. The file '/tmp/emptyconfig' is empty on purpose. We specify all the commands on the commandline. However, vsftpd insists it has a config file so we give it one. To test both conditions, the following commands should yield no output at all:

    echo vsftpd > /tmp/vsftpd.log
    cat /tmp/emptyconfig
    Then try again with the above commandline.

Page 7 of 12 FirstFirst ... 3 4 5 6 7 8 9 10 11 ... LastLast

Posting Permissions

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