Solved

Share A Folder with vsftpd on Ubuntu Server 7.04

Posted on 2009-05-19
9
789 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 40

Expert Comment

by:omarfarid
ID: 24433988
did you restart the vsftpd server?
0
 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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