Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th September 2006, 04:02 AM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
anonymous login allowed on vsftpd, local login not allowed

Hello,

I installed vsftpd via yum, and followed this instructions to get a working FTP server on my machine, except for one: anonymous_enable=YES, because I want read-only access for anonymous users.
Well, the thing is, I can log in as an anonymous user (login: anonymous, passwd: anything), but when trying to log as a local user, I always get "530 Login incorrect." I'm positive I'm typing the password right - tested it with SSH.

Is there any way of allowing read-only access for anonymous users, and r-w access for local users? What am I doing wrong?

Thanks in advance,

-Fibo
Attached Files
File Type: conf vsftpd.conf (3.9 KB, 240 views)
Reply With Quote
  #2  
Old 19th September 2006, 05:24 AM
powereds's Avatar
powereds Offline
Registered User
 
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310
try to put 'local_enable=YES'
or uncomment it.
__________________
PowerEds
DCSE
Registered LinuxUser #395049


WAF :: Philippines
^

Last edited by powereds; 19th September 2006 at 05:28 AM.
Reply With Quote
  #3  
Old 19th September 2006, 05:43 AM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
Quote:
Originally Posted by powereds
try to put 'local_enable=YES'
or uncomment it.
local_enable=YES is already uncommented (see the attached vsftpd.conf file).
And the problem hasn't yet been solved.
Reply With Quote
  #4  
Old 19th September 2006, 06:36 AM
powereds's Avatar
powereds Offline
Registered User
 
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310
ok. please enable/uncomment 'xferlog_file=/var/log/vsftpd.log'
so we will be able to troubleshoot and further examine your vsftpd server
with the help of vsftpd log.
__________________
PowerEds
DCSE
Registered LinuxUser #395049


WAF :: Philippines
^
Reply With Quote
  #5  
Old 19th September 2006, 06:51 AM
powereds's Avatar
powereds Offline
Registered User
 
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310
i cant find where the logfile of vsftpd daemon is located.
it is very important because it can help us troubleshoot
your vsftpd server.

try to examine /var/log/vsftpd.log file if you can see the
status of your vsftpd daemon.
__________________
PowerEds
DCSE
Registered LinuxUser #395049


WAF :: Philippines
^

Last edited by powereds; 19th September 2006 at 06:54 AM.
Reply With Quote
  #6  
Old 19th September 2006, 06:54 AM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
Quote:
Originally Posted by powereds
i cant find where the logfile of vsftpd daemon is located.
it is very important because it can help us troubleshoot
your vsftpd server.
Apparently /var/log/vsftpd.log logs transfers only.
Of course, since I can't even log in, there are no transfers at all.
Reply With Quote
  #7  
Old 19th September 2006, 07:15 AM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
Quote:
Originally Posted by powereds
try to examine /var/log/vsftpd.log file if you can see the
status of your vsftpd daemon.
Tried it. The file is empty, and does not change during anonymous login OR during failed login attempt.
But it does change when transferring files, and this is what it displays:
Code:
Tue Sep 19 06:22:24 2006 1 200.106.209.30 8 /file.txt b _ o a ? ftp 0 * c
Tue Sep 19 06:22:53 2006 1 200.106.209.30 0 /pub b _ o a mozilla@example.com ftp 0 * i
Tue Sep 19 06:22:58 2006 1 200.106.209.30 8 /pub/file.txt b _ o a mozilla@example.com ftp 0 * c
Tue Sep 19 06:23:51 2006 1 200.106.209.30 0 / b _ o a mozilla@example.com ftp 0 * i
Tue Sep 19 06:23:54 2006 1 200.106.209.30 8 /file.txt b _ o a mozilla@example.com ftp 0 * c
Actions taken to generate such log:
1- logged as anonymous user from the CLI FTP utility and downloaded the file /file.txt.
2- Opened my ftp server on Mozilla Firefox, and in doing so, automatically listed the contents of the directory /pub.
3- Downloaded file /pub/file.txt (which is a symlink to /file.txt).
4- Still in Firefox, opened FTP root.
5- Downloaded /file.txt once again.

Last edited by Fibonacci; 19th September 2006 at 07:30 AM.
Reply With Quote
  #8  
Old 19th September 2006, 07:41 AM
powereds's Avatar
powereds Offline
Registered User
 
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310
yes. it doesnt indicate about the vsftpd daemon.
right now im digging on my system and googling trying to find the log of the vsftpd daemon
__________________
PowerEds
DCSE
Registered LinuxUser #395049


WAF :: Philippines
^
Reply With Quote
  #9  
Old 19th September 2006, 07:52 AM
powereds's Avatar
powereds Offline
Registered User
 
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310
have you reinstalled your vsftpd? via yum?
__________________
PowerEds
DCSE
Registered LinuxUser #395049


WAF :: Philippines
^
Reply With Quote
  #10  
Old 19th September 2006, 01:13 PM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
Quote:
Originally Posted by powereds
have you reinstalled your vsftpd? via yum?
Just reinstalled it via YUM. Same problem.
Reply With Quote
  #11  
Old 19th September 2006, 07:45 PM
Black_Templar's Avatar
Black_Templar Offline
Registered User
 
Join Date: Aug 2006
Location: Mount Holly, NC
Posts: 26
Does the userid that is trying to login listed in either the /etc/vsftpd.ftpusers or /etc/vsftpd.user_list?

If so, then that id will *NOT* be allowed to login.
__________________
To err is human, but to really screw up requires the root password.
Reply With Quote
  #12  
Old 19th September 2006, 11:31 PM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
Quote:
Originally Posted by Black_Templar
Does the userid that is trying to login listed in either the /etc/vsftpd.ftpusers or /etc/vsftpd.user_list?
The file /etc/vsftpd.user_list contains ONLY my username. Shouldn't it allow me to log in, then?

EDIT: Tried putting my uid (as displayed by the id program) instead of my username, restarted vsftpd, and still the same thing: anonymous login OK, local login fails.

Last edited by Fibonacci; 19th September 2006 at 11:58 PM.
Reply With Quote
  #13  
Old 20th September 2006, 04:00 PM
Black_Templar's Avatar
Black_Templar Offline
Registered User
 
Join Date: Aug 2006
Location: Mount Holly, NC
Posts: 26
Quote:
Originally Posted by Fibonacci
The file /etc/vsftpd.user_list contains ONLY my username. Shouldn't it allow me to log in, then?
No - its counter-intuitive. The header for the user_list file says:

Quote:
If userlist_deny=YES (default), never allow users in this file, and do not even prompt for a password.
In your vsftpd.conf file, if you have userlist_enable=YES and have your userid in the vsftpd.user_list file - that user will not be able to log in. Remove it from the file and try the ftp again.
__________________
To err is human, but to really screw up requires the root password.
Reply With Quote
  #14  
Old 20th September 2006, 06:09 PM
Fibonacci Offline
Registered User
 
Join Date: Mar 2006
Location: Bogotá, Colombia
Age: 27
Posts: 132
I'm not at home right now, so I cannot change it, but one thing I remember: it DOES prompt for a password when I try to use the username in vsftpd.user_list.
Reply With Quote
  #15  
Old 20th September 2006, 06:17 PM
moonpup Offline
Registered User
 
Join Date: Jun 2005
Location: Boston, MA
Posts: 76
Can you post your complete vsftpd.conf file as well as the /etc/vsftpd.ftpusers or /etc/vsftpd.user_list ?
Reply With Quote
Reply

Tags
allowed, anonymous, local, login, vsftpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No root login allowed at login screen - Fedora 10 mitchellray Using Fedora 2 2nd April 2009 02:13 AM
pure-ftpd problem: only 1 simultaneous login allowed? chacko Servers & Networking 1 27th June 2007 08:44 AM
root login not allowed on gnome & kde cow Using Fedora 0 10th April 2006 04:07 AM
root login not allowed after up2date? hlfmanhlfamzng Using Fedora 15 28th January 2005 01:42 AM
root login not allowed AGAIN iliev76 Using Fedora 3 8th January 2005 08:39 PM


Current GMT-time: 02:15 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat