LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-08-2006, 02:22 AM   #1
yangontha
LQ Newbie
 
Registered: May 2006
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
vsftp not working on Fedora5


My previous server installation was Fedora4 and I installed vsftpd 2.0.3 and it is working as intended.

Recently I installed Fedora5 and I tried to install vsftpd 2.0.4. After installation, I cannot log in using the local user. However I was able to log in using anonymous. Then I tried to edit /etc/vsftpd.conf by commenting out the anonymous_enabld=YES and restart /etc/init.d/xinetd restart.
I still can log in using "ftp" as anonymous.

I removed the 2.0.4 and reinstalled with vsftpd 2.0.3 on Fedora5.
Same thing. I can't log in with local user while I can log in with "ftp" user.

Forget to add some info.
I have uncommented the line in the vsftpd.conf
local_enable=YES
It is not able to access by local users.



Please advise.

thanks and rgds,

Last edited by yangontha; 05-08-2006 at 02:26 AM.
 
Old 05-08-2006, 07:01 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It may be that your vsftpd is linked with PAM. Theres's some info on local users not being able to login at http://www.vsftpdrocks.org/faq/ which might be useful.
 
Old 05-08-2006, 10:15 PM   #3
yangontha
LQ Newbie
 
Registered: May 2006
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
I tried reading the FAQ and found possible problem.

I have put the pam service in vsftpd.conf file as mentioned. But when I looked at the /etc/pam.d/vsftp file that I put in, there is a file (pam_pwdb.so) mentioned.
I can't find that file in /lib/security/ directory.
I compared with (Fedora 4) installation, which have. I only have one (Fedora 5) machine installed, so I can't say whether I missed something during my installation.

Is there any way to install / put the file? (I can't use the file on Fedora 4 because the pam versions looks like different.

#%PAM-1.0
auth required /lib/security/pam_listfile.so item=user sense=deny file=
/etc/ftpusers onerr=succeed
auth required /lib/security/pam_pwdb.so shadow nullok
auth required /lib/security/pam_shells.so
account required /lib/security/pam_pwdb.so
session required /lib/security/pam_pwdb.so


Any help is appreciated.

rgds,
 
Old 05-08-2006, 10:29 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Does that mean that ldd vsftpd confirmed PAM was being used? If that is the problem, hopefully someone here who is running Redhat/Fedora can advise further since my version doesn't use PAM...
 
Old 05-10-2006, 10:25 PM   #5
yangontha
LQ Newbie
 
Registered: May 2006
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
vsftpd not working

Yes. When I checked ldd, it shows that pam is working.
The only thing found was that the file referred in /etc/pam.d/vsftpd as pam_pwdb.so file is not found in /lib/security/.

I don't know how to get that file.

So, (it may not be good), I just changed inside the /etc/pam.d/vsftp as

account sufficient /lib/security/pam_permit.so

and it works. In fact I do not understand very clearly but just read the documentation and tried.

If anybody can help, I will appreciate.

rgds
 
  


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
Opera and Openmotif in Fedora5 hake Linux - Software 0 04-29-2006 03:12 PM
fedora5 and asus not working AVD_ZM Fedora 1 04-02-2006 09:40 AM
vsftp help Fredstar Linux - Newbie 1 10-22-2004 12:01 PM
chroot not working for vsftp anymore noisybastard Linux - Newbie 5 11-26-2003 10:31 PM
vsFTP not working over modem lansman Linux - Networking 1 06-17-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:18 PM.

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