Find the answer to your Linux question:
Results 1 to 2 of 2
The subject says it all. I've searched the vsftp FAQ and googled for an answer without success. I can however log in with a standard user. It appears that PAM ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2002
    Posts
    61

    Virtual User can not log into vsftp ?


    The subject says it all.
    I've searched the vsftp FAQ and googled for an answer without success.
    I can however log in with a standard user.

    It appears that PAM and vsftp are not linked in some way.

    My vsftp.conf:
    anonymous_enable=NO
    pam_service_name=/etc/pam.d/ftp
    local_enable=YES
    write_enable=NO
    anon_upload_enable=NO
    anon_mkdir_write_enable=NO
    anon_other_write_enable=NO
    chroot_local_user=YES
    #guest_enable=YES
    #guest_username=virtual
    #listen=YES
    #listen_port=20
    #pasv_min_port=30000
    #pasv_max_port=30999
    xferlog_enable=YES
    xferlog_file=/var/log/vsftpd.log

    I know that I don't need to specify the pam.d ~ ftp since it is the default but nothing else worked and I feel that PAM with vsftp is causing the problem.

    Virtual users are more secure and I want to be able to set up write access for some and not for others.

    My pam.d file:
    auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
    account required /lib/security/pam_userdb.so db=/etc/vsftpd_login

    I created the vsftpd_login password file according to instructions.

    As you can see from my .conf file, I'm running vsftp with xinetd, which has the proper config file within it's directory as well.

    I'm at a loss. Using RedHat 9 with vsftp 1.2.1 and berkley db 4.#.

    TIA!

    bd

  2. #2
    Just Joined!
    Join Date
    Nov 2002
    Posts
    61
    Answering my own post...

    I was half right with this problem. I was wrong about vsftp not linking with pam. The problem was that pam (ftp pam.d file) was not setup correctly.

    Below is my pam file. The example pam.d file that came with vsftp was not setup properly, leaving it to the enduser. You must tell the 'ftp' file that's placed in pam.d to use a custom db file. (Note: that is, if you want to use advanced virtual user capabilities in conjunction with the password file supplied with vsftp) Also, the problem with the vsftp redhat file not being correct is quite possibly my fault in that when I installed the rpm, I could not find the included examples so I d-loaded the 1.1.3 source file and got it from there.

    The soucre vsftp will setup thing differently than the rpm! Once again, that might have been the cause of my problem.

    I hope this helps some one else trying to setup vsftp.
    auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
    account required /lib/security/pam_userdb.so db=/etc/vsftpd_login

    If anyone finds error in my notes, please correct.

    bd

Posting Permissions

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