LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-27-2003, 04:12 PM   #1
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Rep: Reputation: 20
unable to upload files with RH9 & Vsftpd


I'm getting a headache. I've been trying to figure out how to upload files to my vsftp server without success.

I have userA that maps to the guest_username westcoftp. Both userA and westcoftp are members of webgroup.

vsftpd.conf:

# Access rights
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
local_root=/var/ftp/pub
userlist_enable=YES
userlist_deny=YES
chroot_local_user=YES
guest_enable=YES
guest_username=westcoftp
pam_service_name=vsftpd
user_config_dir=/etc/vsftpd/vsftpd_user_conf
# Security
#anon_world_readable_only=YES
connect_from_port_20=NO
hide_ids=NO
pasv_min_port=50000
pasv_max_port=60000

# Features
xferlog_enable=YES
ls_recurse_enable=NO
async_abor_enable=YES
ftpd_banner=Welcome to PISA FTP service.

idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
anon_max_rate=50000
-------
userA has the following in /etc/vsftpd/vsftpd_user_conf/userA -

local_root=/home/www
write_enable=YES
----

Lessee.. what else.. The userA does exist in the chroot...
---

I've tried this permission:
drwxrwxrwx 5 westcoftp webgroup 4096 Oct 27 13:08 www

(pwd: /home/www)

---
ftp dialog:
ftp> pwd
257 "/"
ftp> put bookmarks.html
local: bookmarks.html remote: bookmarks.html
227 Entering Passive Mode (150,199,178,70,218,121)
550 Permission denied.

/ is actually /home/www and has permission of 777 as you saw in above example.

I am TOTALLY stumped now.

Sanity check: Am I missing something really obvious?

THANKS IN ADVANCE!
 
Old 10-27-2003, 04:41 PM   #2
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Original Poster
Rep: Reputation: 20
WITHOUT FAIL!!!! Everytime I struggle ALL DAY, sometimes ALL WEEK, and searching linuxquestions.org and all that stuff, I find my problem:

userA needs this: in /etc/vsftpd/vsftpd/user_config/userA
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
local_root=/home/www
write_enable=YES
---

d'0h!!

I wish it was clearer that you need to turn ON "anon_" stuff for LOCAL USERS.. It just seemed like bad logic to turn on anoymous stuff for USERS... Sheesh. (banging head on desk)

This post lead to my eureka moment:

http://www.linuxquestions.org/questi...threadid=65393

I DID see it several times, but I guess the last and most recent time just now did the trick, since I have been struggling with this and slowly learning the ins and outs... then THIS post finallymade sense!

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
anonymous users can't upload files-vsftpd dx0r515t Linux - Networking 3 11-21-2012 12:09 AM
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
client can't copy files to local machine through vsftpd server on RH9 tree_buddy Linux - Networking 7 09-15-2003 10:54 AM
Anonymous upload with vsftpd 1.1.0 Jesus0190 Linux - Software 0 01-04-2003 05:40 PM

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

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