LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2013, 06:26 PM   #1
J0atm0n
LQ Newbie
 
Registered: Mar 2013
Distribution: Debian Wheezy
Posts: 5

Rep: Reputation: Disabled
vsftpd not linked to libpam. Please help!


I have been hitting my head against this issue for two days now, so any help would be fantastic.

I’ve compiled vsftpd from source with SSL support and installed it on my Debian Wheezy box. I’ve configured vsftpd to use SSL and set up a password file for virtual users. The problem is, vsftpd doesn’t seem to be taking any notice of this file, and is just allowing local logon from6 the users in /etc/passwd. By running "ldd vsftpd” I have confirmed that vsftpd isn’t linked to PAM.

Is there any way to get vsftpd to link to PAM? I’m still learning (aren’t we all?), and while I know that ldd lists shared library dependencies for a program, I don’t know if said dependencies can be set or if I need to recompile vsftpd with more options or what.

Oh, and if I install the repo version of the server (which is rather old), it does link with PAM, but SSL spits out tons of errors for the FileZilla client, so I can’t use it.

Here are all my confs and settings:

/etc/vsftpd.conf
Code:
listen=YES
ssl_enable=YES
ssl_sslv3=YES
ssl_tlsv1=YES
implicit_ssl=YES
ssl_ciphers=HIGH
allow_anon_ssl=YES
force_anon_data_ssl=YES
force_anon_logins_ssl=YES
debug_ssl=YES
require_ssl_reuse=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem
pam_service_name=vsftpd
virtual_use_local_privs=YES
anon_upload_enable=YES
anonymous_enable=NO
chroot_local_user=YES
connect_from_port_20=YES
dirmessage_enable=YES
dual_log_enable=YES
force_dot_files=NO
guest_enable=YES
hide_ids=YES
local_enable=YES
pasv_addr_resolve=YES
write_enable=YES
xferlog_enable=YES
data_connection_timeout=120
listen_port=40031
local_umask=0666
max_clients=6
max_per_ip=2
pasv_max_port=40040
pasv_min_port=40032
ftpd_banner=Welcome to the FTP
guest_username=ftp
local_root=/mnt/Data/FTP/$USER
nopriv_user=ftp
pasv_address=mydomain.dnsd.me
user_sub_token=$USER
/etc/pam.d/vsftpd
Code:
auth    required        pam_pwdfile.so  pwdfile /etc/ftpd.passwd
account required        pam_permit.so
/etc/ftpd.passwd
Code:
curtains:hNAyuhk9d8U2I
 
Old 03-26-2013, 03:25 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I guess you'll need the libpam-dev package installed if you want to compile vsftpd against pam

Regards
 
Old 03-26-2013, 01:27 PM   #3
J0atm0n
LQ Newbie
 
Registered: Mar 2013
Distribution: Debian Wheezy
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, that was it! I couldn't find that information anywhere else no matter how hard I looked!

For anyone seeing this having the same problem:
Code:
sudo apt-get install libpam-dev
Then build.

Thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd and chroot_local_user / issue with linked directory blizunt7 Linux - Security 3 08-20-2007 11:18 AM
Libpam.a download bhreddy Linux - Newbie 2 05-03-2006 03:35 PM
libpam.so.0 no found! vbbjq Slackware 3 08-03-2004 08:05 AM
Help with libpam.so.0 piles Linux - Software 0 07-02-2003 08:44 AM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration