LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-10-2009, 12:16 AM   #1
Norami
LQ Newbie
 
Registered: Jun 2009
Location: Atlanta, GA
Distribution: Ubuntu 9.10, Xubuntu 9.10, Ubuntu Server 9.10, Debian Lenny, Solaris 10, Slackware 13, Wolvix Cub
Posts: 17

Rep: Reputation: 0
Exclamation VSFTPD error


I'm trying to get FTP set up, but I'm not having much luck.

First off, When I try to connect as a local user (even with local users enabled in the vsftpd.conf file) it tells me the server is anonymous only.

So I decided "let's just log in as anonymous"

Well, it connected the first time I did it, but then I couldn't upload anything. So i modified the conf file to allow anonymous users to upload files, and make directories.

Now I'm getting this error, and can't get it to go away. I can't even connect!

"500 OOPS: vsftpd: refusing to run with writable anonymous root"

I would like to be able to log in as root and upload the files to my specific directories, instead of having to upload to a temporary directory, and then moving all the files after they're uploaded. I'm assuming there's something wonky going on with the conf file, but I've read it up and down, and can't figure it out. Anyone with experience out there? I need to get a site up and running, and I can't do it if I can't ftp the files. If you have another suggestion for getting the files to my cloud server, that'd be awesome as well.
 
Old 12-10-2009, 01:37 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
By default ftp does not allow you to log in as root, and certainly not anonymously!

Please post your vsftpd.conf file

should look something like:
Code:
# grep -v '^#' vsftpd.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES

pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES
Also check you /etc/vsftpd.user_list and /etc/vsftpd.ftpusers files
 
Old 12-10-2009, 01:53 AM   #3
Norami
LQ Newbie
 
Registered: Jun 2009
Location: Atlanta, GA
Distribution: Ubuntu 9.10, Xubuntu 9.10, Ubuntu Server 9.10, Debian Lenny, Solaris 10, Slackware 13, Wolvix Cub
Posts: 17

Original Poster
Rep: Reputation: 0
Code:
# nano /etc/vsftpd.conf
listen=YES
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
There's a few comments in between there, but I didn't figure you needed those.

I don't have a file named vsftpd.user_list

The ftpusers file contains a list that starts with root. Is this file denying a connection from root through FTP?

Last edited by Norami; 12-10-2009 at 01:56 AM.
 
Old 12-10-2009, 02:01 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Yes, if you remove root from the list you will be able to log in as root.

I would however, suggest that you remove the:
Quote:
anon_upload_enable=YES
anon_mkdir_write_enable=YES
entries from the /etc/vsftpd/vsftpd.conf file and then restart the daemon.
 
Old 12-10-2009, 02:05 AM   #5
Norami
LQ Newbie
 
Registered: Jun 2009
Location: Atlanta, GA
Distribution: Ubuntu 9.10, Xubuntu 9.10, Ubuntu Server 9.10, Debian Lenny, Solaris 10, Slackware 13, Wolvix Cub
Posts: 17

Original Poster
Rep: Reputation: 0
Awesome, that did it!

I didn't realize there was a list blocking root access.

Thanks for the help!
 
  


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
Vsftpd Error carlosinfl Linux - Networking 2 12-16-2006 08:15 PM
vsftpd error mwade Linux - Software 5 10-22-2006 02:05 PM
Vsftpd Error rlillard Linux - Software 1 11-23-2005 12:13 AM
vsftpd error (or its me?) DRagonRage Debian 1 09-17-2005 01:38 AM
Error in vsftpd cjlee Linux - Networking 0 08-20-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:50 AM.

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