LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2005, 07:56 AM   #1
Scrag
Member
 
Registered: Mar 2004
Location: Wisconsin
Distribution: Kali Linux
Posts: 131

Rep: Reputation: 15
vsftpd problem...


I installed a vsftpd ftp server and it doesnt run quite right. I have it setup to use a guest account for login. When I ftp to the site, nak.servegame.com, it will prompt for a password and auth seems to work ok, but then when it tries to bring up the ftp site, but just times out. Its a fedora core 3 computer. Its running on broadband, 368k upload/3 meg download.

Any thoughts?

Thanks!
 
Old 02-24-2005, 09:14 AM   #2
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
permissions

earlier this day I set up my laptop as an vsftp server (could sound strange, I know)
and things worked fine. First of all, I read that /home/ftp must be owned by root and the group root must own it as well, but in /home/ftp you can create a directory (ftp for example) if you want people to do whatever they like, like making directories and deleting stuff. to do all this:

#mkdir /home/ftp/ftp
#chown ftp:users /home/ftp/ftp
#chmod 777 -R /home/ftp/ftp

then you can be sure that it'll work, that you will be able to have enough permissions to connect to your ftp. it's not a good idea to chmod something 777 but you can change that later. if you setup your vsftp.conf correct you don't have to worry that people connecting your ftp can change what they want just because /home/ftp/ftp is chmoded 777, only people locally can do that. but nevermind, you can change that when your server works at least)



then in your /etc/vsftpd.conf you should have:
anonymous_enable=YES
listen=YES (if you want to run vsftpd in standalone mode, this is recomended in the manual)

as long as you don't have these below, you don't have to worry at all about people being able to change something in you /home/ftp/ftp just because it's chmoded. They can't if you don't have these permissions (or some of them)

write_enable=YES
anon_mkdir_write_enable=YES
anon_upload_enable=YES

try that and don't forget to restart your ftp after you've changed your vsftpd.conf.
Did it work? In that case, chmod more restrictive

PS. I have no idea if this is this will solve your problem, it's just something that's easy to fix
 
Old 02-24-2005, 09:52 AM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Have you got iptables firewall running? If yes then you would need to allow access. 20,21 and unprivileged ports.

Just to check, drop the firewall and test it.
 
Old 02-24-2005, 02:30 PM   #4
Scrag
Member
 
Registered: Mar 2004
Location: Wisconsin
Distribution: Kali Linux
Posts: 131

Original Poster
Rep: Reputation: 15
YEs, i have an iptables firewall. First, i openmed port 20, same problem. Then i dropped the firewall completely, same problem. I thought of something else though, what is the default directory for vsftpd? Currently, im trying to host ftp under /var/ftp. Is there a way to tell the config file to use this dir? Or should i move all the contents under a different directory?

Thanks again for the help
 
Old 02-25-2005, 02:25 AM   #5
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
what happens when you logon locally to the machine running the vsftpd server and run the ftp client?

ftp localhost


does it connect?


If yes then you know where the problem is - firewall. Is there a hardware firewall like a broadband router or something in front of the machine?
 
  


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 settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
Yet ANOTHER vsftpd problem munkies Linux - Software 4 08-01-2005 06:29 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM
vsftpd problem.. yenonn Linux - Networking 9 07-08-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

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