LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Anonymous users can still access FTP (https://www.linuxquestions.org/questions/linux-server-73/anonymous-users-can-still-access-ftp-556100/)

prashsharma 05-23-2007 10:45 AM

Anonymous users can still access FTP
 
Hi,

I have two computers 1 is running on windows XP and 2nd one(Which is FTP server) is running Redhat enterprise version 3.
I have disabled all the entries of anonymous user in /etc/vsftpd/vsftpd.conf file but whenever I tries to access the folder in /var/ftp/pub as an anonymous user I can access it without any problem. How can I restrict the anonymous users to login?

Thanx
Prashant Sharma

cougyr 05-23-2007 10:57 AM

Have you got any kind of firewall?

JimBass 05-23-2007 11:24 AM

Code:

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO

Make sure that line is not commented out, and restart the vsftpd service. Just changing the configuration file doesn't take effect until you've restarted the service with the new config.

Peace,
JimBass

Kristijan 05-23-2007 07:11 PM

Hi,

Not sure if you have, but did you add the username to /etc/vsftpd.ftpusers ?

-Kristijan

prashsharma 05-23-2007 09:03 PM

FTP anonymous user still access
 
No, there is no Firewall installed on the computer and I have already disabled all the anonymous options in vsftpd.conf file, and there is no user added in any file

Thanx

Kristijan 05-23-2007 10:09 PM

I'm looking at one of the production boxes here at work.

Code:

[root@devbox ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
[root@devbox ~]# cat /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

Try add anonymous to the list and restart the ftpd service.

-Kristijan

mt83 05-26-2007 08:46 AM

Put these line under vsftpd.conf
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO

at vsftpd.user_list put user who u want to allow ftp.


All times are GMT -5. The time now is 12:10 PM.