LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-28-2010, 11:28 AM   #1
vlad_t
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
vsftpd - 550 permition denied


Hello,

I'm trying to setup virtual user to be able to drop files for upload into DB. I followed all the steps in vsftpd manual, and can now login from ftp client with my virtual user name/password. And I can browse my home directory, go into subdirectories, open files. But I can't upload or delete and it's a problem. (All the directories are 777)

After long experiments I noticed that if I change anon_upload_enable to YES in config, even with anonymous_enable=NO than my virtual user can upload files.

Anonymous users can't login, so it's kind of solution, but still doesn't feel right

Please help!

vsftpd.conf:
PHP Code:
listen=YES
listen_port
=10021
pasv_min_port
=30000
pasv_max_port
=30999
anonymous_enable
=NO
anon_upload_enable
=YES
anon_mkdir_write_enable
=NO
anon_other_write_enable
=NO
local_enable
=YES
write_enable
=YES
pam_service_name
=vsftpd
guest_enable
=YES
guest_username
=virtual
user_sub_token
=$USER
local_root
=/FTP/$USER
vsftpd_log_file
=/var/log/vsftpd.log 
user home dir:
PHP Code:
[root@online vsftpd]# ls -la /FTP/fattach
total 208
drwxrwxrwx  3 virtual virtual   4096 Apr 28 12
:14 .
drwxrwxrwx  4 virtual virtual   4096 Apr 27 15:52 ..
-
rw-------  1 virtual virtual   9453 Apr 28 12:14 myPlate-new2.gif
-rw-------  1 virtual virtual 167424 Apr 28 11:48 Phone List.xls
drwxrwxrwx  2 virtual virtual   4096 Apr 27 16
:26 TEST
-rwxrwxrwx  1 virtual virtual     10 Apr 28 11:18 test.2
-rwxrwxrwx  1 virtual virtual      5 Apr 27 15:48 test.txt
-rw-------  1 virtual virtual   7913 Apr 28 11:47 users_west.csv 
Thank you,
Vlad
 
Old 05-03-2010, 05:18 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
anon_upload_enable to YES in config, even with anonymous_enable=NO
If you enable anonymous uploads but do not enable anonymous access there is no real use.

What distro are you using?
Is selinux enabled?
Code:
getenforce
Can you find something in /var/log/messages, ...?
 
Old 05-03-2010, 10:06 AM   #3
vlad_t
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deadeyes View Post
anon_upload_enable to YES in config, even with anonymous_enable=NO
If you enable anonymous uploads but do not enable anonymous access there is no real use.

What distro are you using?
Is selinux enabled?
Code:
getenforce
Can you find something in /var/log/messages, ...?
Ha! It looks like nonsense, but it's the only configuration that works! If I disable that parameter - named users immediately loose upload access.

There is nothing helpful in the logs I sorted all the files by date - only login info is there. No error messages or nothing else.

Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Selinux is disabled.

Thank you for your attention
 
Old 05-03-2010, 11:27 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm wondering if you don't have just a basic user/group permissions problem. In your original home directory listing, everything is owned by user virtual and group virtual. However, if the user for the vsftpd server (usually ftp) isn't in the virtual group, then none of the virtual users is going to be able to write anything. They simply don't have permission since the writing is being done by the ftp user. Try changing the directory ownership to match the user vsftpd runs under, or put that user in the virtual group.
 
  


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
vsftpd; 550 permission denied for upload t0bias Linux - Server 8 04-01-2011 12:39 AM
VSFTPD - 550: Permission denied. myubuntu Linux - Newbie 1 04-13-2010 02:25 PM
Sendmail 550 access denied vous Linux - Software 6 03-03-2005 10:11 AM
getting error 550 from vsftpd monty Linux - Software 3 06-08-2004 03:22 PM
Vsftpd help- 550 error hda Linux - Networking 1 10-15-2003 01:26 PM

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

All times are GMT -5. The time now is 04:34 PM.

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