LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2005, 03:36 PM   #1
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Rep: Reputation: 30
anonymous users can't upload files-vsftpd


Like I said anonymous users can't upload files to my ftp server, im using the latest release of vsftpd. Heres my vsftpd.conf file, also i'm using xinetd...

vsftpd.conf:
Quote:
# Access rights
anonymous_enable=YES
local_enable=NO
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
# 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
xinetd.conf:
Quote:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d
if it matters im running RH9, the problem may be a permision problem because when the anonymous user trys to upload a file it says in the ftp client "Permission Denied' but the anonymous users can download files just fine. Im a little stuck on this one

EDIT: just noticed on the "local net sharing" tab when I right click on var/ftp (my shared folder) it says: Error running "filesharelist" Check if installed and in $PATH or /usr/sbin

dont know if thats related or not, but also when I try and change permissions of the var/ftp directory my changes don't save the owner always gets set back to root and the write abilitys check box always gets set back for only root. And yes I am trying to make these changes logged in as root.
This is frustrating because I got this setup in minutes easily with slackware and had no issues.

Last edited by dx0r515t; 03-05-2005 at 03:51 PM.
 
Old 03-05-2005, 04:05 PM   #2
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
anyone?

Last edited by dx0r515t; 03-05-2005 at 04:09 PM.
 
Old 11-20-2012, 11:55 PM   #3
cyberjithin
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

by default it is not possible to upload files to /var/ftp
1. #getenforce
if it is disable or permissive you have to change this to enforcing
to do so
#vim /etc/sysconfig/selinux
then change
SELINUX=enforcing

then save and REBOOT your system. and follow below steps

step 1
#mkdir /var/ftp/upload

step2
#setfacl -m u:ftp:rwx /var/ftp/upload

step 3
#ls -ldZ /var/ftp/upload (by default it is public_content_t)
to change this

step 4
#chcon -t public_content_rw_t /var/ftp/upload

step5
#getsebool -a | grep ftp

if
allow_ftpd_anon_write --> off
you have to turn it on by

#setsebool -P allow_ftpd_anon_write on (-P for permanent)


step 6
open vsftpd.conf and edit these
#vim /etc/vsftpd/vsftpd.conf
anon_upload_enable=yes
save file

#service vsftpd restart

step 7

#ftp <ip>
user anonymous(or ftp)
no password required just press enter
> cd upload
now you can upload to /var/ftp/upload using >put <filename>
 
Old 11-21-2012, 12:09 AM   #4
jyothish_unplugged
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up you rockksssss

thank you so much .it helped me a lot
 
  


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
Mac user cannot upload files,vsftpd frankotse Linux - Networking 1 07-06-2005 03:16 PM
vsftpd - virtual users unable to upload frodema Linux - Networking 3 12-06-2003 07:32 AM
unable to upload files with RH9 & Vsftpd ToBe Linux - Networking 1 10-27-2003 04:41 PM
Anonymous upload with vsftpd 1.1.0 Jesus0190 Linux - Software 0 01-04-2003 05:40 PM
anonymous upload with vsftp rachuba Linux - Software 0 12-29-2002 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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