14 comment

  1. These instructions seem to get the server running, but I’m unable to connect with any local user. It keeps telling me my password is invalid, even though I can ssh with that username/password just fine.

    Status: Connection established, waiting for welcome message…
    Response: 220 (vsFTPd 2.0.5)
    Command: USER ftpuser
    Response: 331 Please specify the password.
    Command: PASS ********
    Response: 530 Login incorrect.

    1. For a new user you would do:

      # useradd -m -G ftp -s /sbin/nologin -d /home/ftpuser ftpuser

      (This also sets the login shell to /sbin/nologin which effectively disables ssh login for the account.)
      For an existing user you would do:

      # usermod ftpuser -G ftp -s /sbin/nologin -d /home/ftpuser

  2. Using the pam file and virtual users with SSL/TLS, would i have to use the user_config_dir= option to set specifics for those users so they have seperate login directories, since those users aren’t in the centos users account, but in the separate pam database file?

Leave a Comment