Find the answer to your Linux question:
Page 12 of 12 FirstFirst ... 2 8 9 10 11 12
Results 111 to 120 of 120
Originally Posted by Herculeon Posts 107 to 109 have "run_as_launching_user=true". I forgot to mention that. Set it to false, it's the default. I only used it to make it run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #111
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100

    Quote Originally Posted by Herculeon View Post
    Posts 107 to 109 have "run_as_launching_user=true". I forgot to mention that.
    Set it to false, it's the default. I only used it to make it run from the cmdline. So you better remove it (default = false). Then retest. You are almost there.

  2. #112
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    When I set it to false, I get the following in filezilla:

    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    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

    when I change it back to true, I get:

    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/var/www/html/retention"
    Command: TYPE I
    Response: 200 Switching to Binary mode.
    Command: PASV
    Response: 227 Entering Passive Mode (172,16,0,114,21,181).
    Command: LIST
    Response: 150 Here comes the directory listing.
    Response: 226 Directory send OK.
    Status: Directory listing successful
    Status: Retrieving directory listing...
    Command: CWD /var/www/html
    Response: 250 Directory successfully changed.
    Command: PASV
    Response: 227 Entering Passive Mode (172,16,0,114,21,180).
    Command: LIST
    Response: 150 Here comes the directory listing.
    Response: 226 Transfer done (but failed to open directory).
    Status: Directory listing successful
    Status: Disconnected from server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/var/www/html/retention"
    Status: Directory listing successful

  3. #113
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Try playing with:

    Code:
    run_as_launching_user=false
    ftp_username=development
    nopriv_user=development
    By commenting them out, different user etc etc.

  4. #114
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    Ok, I tried the juggling and anytime the run_as_launching_user=false is in effect, I cannot log in. I need to have that as true for some reason. No matter whether I have ftp_username or nopriv_user disabled, I cannot log in with the development user name.

    I can only connect anonymously with the following:

    run_as_launching_user=true
    ftp_username=development
    nopriv_user=development

    Below is the results from the testing:
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Delaying connection for 1 second due to previously failed connection attempt...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 530 Login incorrect.
    Error: Critical error
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 530 Login incorrect.
    Error: Critical error
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 530 Login incorrect.
    Error: Critical error
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER administrator
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER administrator
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/var/www/html/retention"
    Status: Directory listing successful
    Status: Disconnected from server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Delaying connection for 1 second due to previously failed connection attempt...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER administrator
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER administrator
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Delaying connection for 1 second due to previously failed connection attempt...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/var/www/html/retention"
    Status: Directory listing successful
    Error: Connection closed by server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    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
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 530 This FTP server is anonymous only.
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/var/www/html/retention"
    Status: Directory listing successful
    Response: 421 Timeout.
    Error: Connection closed by server

  5. #115
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Sorry for responding so late, I probably archived your reply without replying myself.

    I checked the error 'vsftpd: refusing to run with writable root inside chroot()' on the internet. A new vsftpd.conf is below.

    Furthermore, I'm confused on what your purpose is. Do you want people to login anonymously or by using the credentions from the user 'development'?. You could allow anonymous logins under the credentials from 'development'.

    Named (local) logins are not working because 'local_enable=no'.

    Try this:

    Code:
    listen_port=5555 
    pasv_min_port=5556
    pasv_max_port=5557
    port_enable=NO
    listen=YES
    anon_world_readable_only=false
    write_enable=true
    anon_upload_enable=true
    anon_mkdir_write_enable=true
    anon_other_write_enable=true
    seccomp_sandbox=no
    local_enable=no
    
    run_as_launching_user=false
    ftp_username=development
    nopriv_user=development
    
    dual_log_enable=no
    log_ftp_protocol=no
    #vsftpd_log_file=/tmp/vsftpd.log
    #xferlog_file=/tmp/vsftpd.log
    
    allow_writeable_chroot=YES
    EDIT2: Seems like you are not the only one that has been bitten by this. This was implemented as a workaround of some GLIBC vulnerabilities. You might want to think about using the local user instead.

    EDIT3: Please note that we are only testing anonymous logins here.

  6. #116
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    I get the following with the configuration and try the anonymous connection. As to your question about using a local user, I thought I was trying to use that. I have a user "development" in place. I only have it set up to use a user name and password just because I am paranoid. I know this server will never see any public traffic for ftp. I have just learned as best practice to never set anything up without a password. I have been stung too many times by "the powers that be" deciding to change their mind about 15 times before I end up getting majorly F***ed. So I would rather have password enforcement in effect from the start.

    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 230 Login successful.
    Command: OPTS UTF8 ON
    Response: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/"
    Status: Directory listing successful
    Status: Retrieving directory listing...
    Command: CWD /var/www/html/retention
    Response: 550 Failed to change directory.
    Error: Failed to retrieve directory listing

  7. #117
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    This is insane, I'm missing something here. Anyways, here is a config for local users only. Try it. I made it work under my configuration with Ubuntu Quantal (2.3.5). It was not reacting like I always expected. But let's see how it turns out for you. This should at least be in the direction we are aming for. Would be nice if the results were positive.

    Please note, this enables ftp for *every* local user. Local users will be, upon login, placed into their home directory.

    Code:
    # basic daemon configuration
    listen_port=5555 
    pasv_min_port=5556
    pasv_max_port=5557
    listen=YES
    
    # anonymous or local
    anonymous_enable=NO
    local_enable=YES
    
    # permissions
    write_enable=YES
    
    # logging
    dual_log_enable=yes
    log_ftp_protocol=yes
    vsftpd_log_file=/tmp/vsftpd.log
    xferlog_file=/tmp/vsftpd.log
    
    # misc
    seccomp_sandbox=no

  8. #118
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    Ok, below is what is get now in filezilla and it also pauses roughly 7 seconds before it fails:

    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER development
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 530 Login incorrect.
    Error: Critical error
    Error: Could not connect to server
    Status: Connecting to 172.16.0.114:5555...
    Status: Connection established, waiting for welcome message...
    Response: 220 (vsFTPd 3.0.0)
    Command: USER anonymous
    Response: 331 Please specify the password.
    Command: PASS **************
    Response: 530 Login incorrect.
    Error: Critical error
    Error: Could not connect to server


    I tried the anon logon just to see what happens

  9. #119
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    No use in trying anon logon since we explicitly disabled it.

    Local logon is a problem... . Please post the output of:

    Code:
    ls /etc/pam.d/

  10. #120
    Just Joined!
    Join Date
    Jan 2013
    Posts
    61
    Rexilion,
    I appreciate the assistance. I really really do. I ended up getting pissed off with this and wiped the system. I then took the easy way out and installed windows server 2K8 R2. It does not take me out of the Linux realm since I have a total of 19 servers. 12 of those are windows (BOOOOO), 2 Ubuntu, 1 debian, 1 suse, 1 open-suse, and 2 fedoras. The *nix cores are the workhorses, true, but in this case it just wasn't working. I am not happy about adding another windows box, but I needed to get the ftp done. I set up a WIMP server. This solved the main issue for that particular environment. Again, thanks for the assistance!!!!

Page 12 of 12 FirstFirst ... 2 8 9 10 11 12

Posting Permissions

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