Solved

Share A Folder with vsftpd on Ubuntu Server 7.04

Posted on 2009-05-19
9
786 Views
Last Modified: 2013-12-06
I am pulling data off of one server and giving it to someone else in my office. I am running mediawiki on a server that is on a closed network. I need to move the images folder off of that server to a local file store so I can transfer it somewhere else to be imported into our new wiki server.

I thought I'd use Samba, but why not just use FTP, should work.

I have vsftpd setup and running stand alone. I can connect to it locally via remote terminal and I can connect to it via FileZilla FTP client. I can only see the empty user directory that I set up according to the vsftpd INSTALL doc. I want to be able to use the FTP client to navigate to the directory that I need and transfer files. I have reviewed dozens of posts in forums and on this site and nothing works.

How can I get the FTP server to allow my login to see the folder structure of the server. I'm not on an open system or on the web, I just need to transfer some files and then the server is getting turned off.

 Is it a CHMOD command? an apache configuration? can I just simlink the directory that I want to transfer to the empty directory assigned to /var/ftp user? What's missing? Any ideas?

My vsftpd.conf is below
# Standalone mode

listen=YES

max_clients=200

max_per_ip=4

# Access rights

anonymous_enable=YES

local_enable=NO

write_enable=NO

anon_upload_enable=NO

anon_mkdir_write_enable=NO

anon_other_write_enable=NO

# Security

anon_world_readable_only=YES

connect_from_port_20=YES

hide_ids=YES

pasv_min_port=50000

pasv_max_port=60000

# Features

xferlog_enable=YES

ls_recurse_enable=NO

ascii_download_enable=NO

async_abor_enable=YES

# Performance

one_process_model=YES

idle_session_timeout=120

data_connection_timeout=300

accept_timeout=60

connect_timeout=60

anon_max_rate=50000

Open in new window

0
Comment
Question by:alcratin_42
  • 4
  • 3
  • 2
9 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24429550
Hi,
how about local_enable=YES  ?
Take care not to use chroot_local_user=YES

wmp
 
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24432546
if the below option is in your conf file (which I don't see), then comment it

chroot_local_user=YES
0
 

Author Comment

by:alcratin_42
ID: 24433972
I made the change to enable_local=YES and still the same result.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24433988
did you restart the vsftpd server?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24434149
... it's 'local_enable', afaik. Typo?
0
 

Author Comment

by:alcratin_42
ID: 24435074
Yes, I goofed on my posting earlier. I changed it to

local_enable=YES

When I installed this, I did not do it from apt-get. I had to manually download it and run it. So the binary is not in init.d, it is in /usr/local/sbin. When I want to restart it, I have to use a killall vsftpd command to stop it and then use
/usr/local/sbin/vsftpd &
to restart
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24435137
OK, why not?
0
 

Author Comment

by:alcratin_42
ID: 24437100
Allow to clarify.

I made the change as you requested. I responded with a typo.

My solution was to create a simlink to a folder in a users directory and then login as that user instead of logging in as anonymous. Then I was able to get the files I needed.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 24437177
Er .... you never told us that you were logging in as anonymous. Anonymous ftp is always chrooted, so what you described in your Q is fully normal behaviour!
Had you told us about the 'anonymous' thing, we would have responded: "Login as local user, and take care that it's allowed to do so by setting local_enable, and that's all!"

0

Featured Post

Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now