Solved

Share A Folder with vsftpd on Ubuntu Server 7.04

Posted on 2009-05-19
9
788 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

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.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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