LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-08-2003, 10:32 AM   #1
noisybastard
Member
 
Registered: May 2003
Distribution: RedHat 9
Posts: 32

Rep: Reputation: 15
more vsftpd config trouble


I'm trying to set up vsftpd so only system accounts can login (no anonymous logins). Right now it's running, and it will ask for a password, but no matter what user I try to login as it will say the password is wrong, even if it's a fresh account that I just made the password for. Any idea what's going on here?

The only items I changed from the default vsftpd.conf are:
anonymous_enable=NO
local_enable=YES
write_enable=YES

I thought that's all I had to do, but it's rejecting valid passwords still.



Assuming I get this running, does anyone know how hard it is to link up vsftpd to a mysql database for the login process? I'd also like to link in pop3 accounts to mysql (I can't seem to login to pop3 either), but I'll save that question for another post once I get this one working.
 
Old 05-08-2003, 10:46 AM   #2
mawdryn
LQ Newbie
 
Registered: Jun 2001
Posts: 25

Rep: Reputation: 15
Hi,

Never really used this program, but I think the cause of your problem is the lack of PAM support on your system...
you may wish to try adding the following line to your config file:

check_shell=NO

As for your second question, I don't think it would be possible without actually changing the code for the program. It looks for local system users. If you are allowing ftp access say to members of a web page, you may wish to create a group for vsftusers (albeit highly restrictive access) and add some sort of adduser script to your web page using perl.
 
Old 05-08-2003, 10:55 AM   #3
noisybastard
Member
 
Registered: May 2003
Distribution: RedHat 9
Posts: 32

Original Poster
Rep: Reputation: 15
ok, I set check_shell=NO and restarted xinetd, but it's still the same.

As for the mysql part I suppose it would be best to just run adduser from php. Redhat won't freak out if I have 3,000 user accounts, right?
 
Old 05-08-2003, 11:07 AM   #4
mawdryn
LQ Newbie
 
Registered: Jun 2001
Posts: 25

Rep: Reputation: 15
I got this from the faq about pam..

vsftpd tries to link with PAM. (Run "ldd vsftpd" and look for libpam to
find out whether this has happened or not). If vsftpd links with PAM, then you will need to have a PAM file installed for the vsftpd service. There is a sample one for RedHat systems included in the "RedHat" directory - put it under /etc/pam.d

can't really think/find anything else... sorry
 
Old 05-08-2003, 11:07 AM   #5
ealpert1
LQ Newbie
 
Registered: May 2003
Location: Colorado
Posts: 24

Rep: Reputation: 15
Are you using pam? What's in your /etc/pam.d/vsftpd?
Do you have the following in your /etc/vsftpd.conf?

pam_service_name=vsftpd

The above name must match the name of the file in /etc/pam.d/vsftpd

-e
 
Old 05-08-2003, 11:13 AM   #6
noisybastard
Member
 
Registered: May 2003
Distribution: RedHat 9
Posts: 32

Original Poster
Rep: Reputation: 15
awesome! it works!


many thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Config ? Is this possible? Jukas Linux - Software 5 11-03-2005 07:51 PM
VSFTPD config issue MbowerARA Linux - Networking 9 04-04-2005 06:36 PM
VSFTPD config problem nadsab Linux - Software 0 08-05-2004 02:37 PM
VSFTPD Debian VSFTPD "unrecognised variable in config file" DCT Linux - Software 0 05-29-2004 11:59 PM
vsftpd config hda Linux - Software 7 10-16-2003 10:37 AM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration