LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Anonymous mode for vsftpd (https://www.linuxquestions.org/questions/linux-networking-3/anonymous-mode-for-vsftpd-101103/)

sierra055 10-07-2003 01:54 AM

Anonymous mode for vsftpd
 
Hi,
Im using vsftpd and while I can make a connection fine, when I try to log in as a user I get an error message saying:

530 This server is anonymous only

I have enabled local access and disallowed anonymous access, but I can't log in!

Any help would be appreciated. Thanks!

david_ross 10-07-2003 01:39 PM

Welcome to LQ.

Can you post vsftpd.conf

sierra055 10-07-2003 07:02 PM

Thanks. I'm just using the included conf file, but have disabled anonymous connections and have allowed local ones.

I can still post it if necessary...

david_ross 10-08-2003 12:43 PM

Are you running it as standalone or thruogh xinetd?

If you are using xinetd I think that you need the config file to be:
/etc/vsftpd.conf

I tend to use standalone mode - just uncomment the bottom 2 lines in the config then run:
service vsftpd start

sierra055 10-08-2003 07:35 PM

I've tried it in both, but currently in standalone.
I have the conf file in the /etc directory, is that where it should be for standalone as well as xinetd?

I'm now getting a new message after making a couple of changes:

500 OOPS: vsftpd: security: 'one_process_model' is anonymous only
Connection closed by remote host.

david_ross 10-09-2003 12:17 PM

Can you post vsftpd.conf

sierra055 10-09-2003 06:24 PM

anonymous_enable=YES
local_enable=YES
write_enable=YES
#local_umask=022
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#banned_email_file=/etc/vsftpd.banned_emails
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES

listen=YES

david_ross 10-10-2003 12:30 PM

Try using:
Code:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
idle_session_timeout=600
pam_service_name=vsftpd
listen=YES
tcp_wrappers=YES

Then restart:
service vsftpd restart

and try again.

sierra055 10-13-2003 07:20 PM

Thanks. Getting warmer, but now it gives me the error

500 OOPS: could not bind listening IPv4 socket

Any more ideas?

sierra055 10-13-2003 09:06 PM

Got it! It was still trying to run under xinetd as well as in standalone.

Only problem now is that I can log in under my personal account, but not the main account I want to use for ftp access. Any ideas?

Thanks so much for your help!!

sierra055 10-13-2003 09:38 PM

Ok.. fixed that too, all working now! Thanks again!!!

jeremy 10-13-2003 11:00 PM

sierra055,

Can you post what you did to fix the problem? Someone else might see this thread and have the exact same problem - your answer may help them. Thanks.

--jeremy

sierra055 10-14-2003 03:15 AM

After I used the .conf file that david posted, I had the problem of it vsftp trying to run under both xinetd and in standalone. I removed the files for xinetd and copied the included vsftpd.pam file to /etc/pam.d/ftp and restarted the service. Worked fine.

david_ross 10-14-2003 12:26 PM

Good to see you got it going.

Well done!


All times are GMT -5. The time now is 11:34 AM.