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

19th September 2006, 04:02 AM
|
|
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
|

19th September 2006, 05:24 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310

|
|
|
try to put 'local_enable=YES'
or uncomment it.
Last edited by powereds; 19th September 2006 at 05:28 AM.
|

19th September 2006, 05:43 AM
|
|
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.
|

19th September 2006, 06:36 AM
|
 |
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.
|

19th September 2006, 06:51 AM
|
 |
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.
Last edited by powereds; 19th September 2006 at 06:54 AM.
|

19th September 2006, 06:54 AM
|
|
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.
|

19th September 2006, 07:15 AM
|
|
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.
|

19th September 2006, 07:41 AM
|
 |
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
|

19th September 2006, 07:52 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: /ph/bohol/talibon
Posts: 310

|
|
|
have you reinstalled your vsftpd? via yum?
|

19th September 2006, 01:13 PM
|
|
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.
|

19th September 2006, 07:45 PM
|
 |
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.
|

19th September 2006, 11:31 PM
|
|
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.
|

20th September 2006, 04:00 PM
|
 |
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.
|

20th September 2006, 06:09 PM
|
|
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.
|

20th September 2006, 06:17 PM
|
|
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 ?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 02:15 (Thursday, 20-06-2013)
|
|
 |
 |
 |
 |
|
|