LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2010, 11:02 AM   #1
felipefv
Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 59

Rep: Reputation: 5
Exclamation vsFTPd - Anonymous dir write problem


Hi,

I am setting up a FTP server with vsFTPd which will also accept anonymous logins (but local users too). However, there seems to be some problem with the permissions of the directory separated only for anonymous users (which is /var/ftp/anon/).

The error happens just when write permissions are passed to all users (like chmod a+rwx /var/ftp/anon). When there is no write permission to all users the problem doesn't happens, but I can't write on the directory.

Could anyone help me in this configuration?

P.S.: When I log with a local user the FTP works fine.

Code:
# General
listen=YES
hide_ids=YES
max_per_ip=3
ftpd_banner=Welcome!
xferlog_enable=YES
connect_from_port_20=YES
write_enable=YES
chroot_local_user=YES
delete_failed_uploads=YES
local_enable=YES
log_ftp_protocol=YES
ftp_username=ftp
pam_service_name=vsftpd
secure_chroot_dir=/var/run/vsftpd/empty/

# Anonymous user config
anonymous_enable=YES
anon_upload_enable=YES
anon_root=/var/ftp/anon/
anon_mkdir_write_enable=YES
 
Old 12-08-2010, 08:36 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Who owns /var/ftp/anon? What does happen, when only the owner (I assume ftp) has rwx permission?

Which error does appear in detail - just writing is not possible?
 
Old 12-09-2010, 07:38 PM   #3
felipefv
Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 59

Original Poster
Rep: Reputation: 5
It fails to write files and dirs.
But I will try a chown ftp. /var/ftp/anon and see what happens.
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
Using vsftpd, trying to enable anonymous write PDAquila Linux - Software 2 06-11-2006 09:56 PM
Using vsftpd, trying to enable anonymous write PDAquila Linux - Newbie 3 06-09-2006 12:17 AM
Using vsftpd, trying to enable anonymous write PDAquila SUSE / openSUSE 1 06-08-2006 09:30 PM

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

All times are GMT -5. The time now is 10:10 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