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! |
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! |
All times are GMT -5. The time now is 01:44 AM. |