CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  vsftpd, "550, permission denied" while upload

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  mariodeng
      mariodeng
vsftpd, "550, permission denied" while upload
#1
Newbie
Joined: 2012/2/23
From
Posts: 4
Hello everyone,

I am trying to setup a FTP server. For this I installed vsftpd.

My vsftpd.conf looks like this:

anon_world_readable_only=NO
anonymous_enable=YES
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
hide_ids=NO
listen=YES
local_enable=YES
max_clients=100
max_per_ip=2
nopriv_user=ftp
pam_service_name=ftp
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
xferlog_enable=YES
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=YES
download_enable=YES
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem


The config File for my only, located under: /etc/vsftpd/users looks like:

dirlist_enable=YES
download_enable=YES
local_root=/var/ftp/virtual_users/ftpi
write_enable=YES


Also I am sure that die .pem file exists. The directory of the virtual user is: /var/ftp/virtual_users/ftpi/, while the permissions look like:

drwxr-xr-x. 2 ftpi ftpi 4.0K Feb 23 00:21 ftpi


And the user has "x" rights for the upper dirs.

But when try to upload a file (as user ftpi), I get "550 permission denied". I already checked selinux and iptables, everything fine (doesn't even work when I shut these services down).

And, at least, the passwd entry for the user ftpi

ftpi:x:504:505:ras mirror:/var/ftp/virtual_users/ftpi:/sbin/nologin


I can't figure out where the permission problem is coming from, may you have an idea?


Cheers,
Mario
Posted on: 2012/2/23 10:15
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: vsftpd, "550, permission denied" while upload
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
It is not obvious to me where you are going wrong, but have you read Chroot vsftpd with non-system users and/or Using Virtual Accounts with VSFTPD (Very Secure FTP server) and MySQL on CentOS 5?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/23 16:21
Create PDF from Post Print
Top
  •  mariodeng
      mariodeng
Re: vsftpd, "550, permission denied" while upload
#3
Newbie
Joined: 2012/2/23
From
Posts: 4
Yeah,

I did it exactly the way mentioned in the first tutorial. Also tried the scripts.

I just can't write
Posted on: 2012/2/24 9:10
Create PDF from Post Print
Top
  •  r_hartman
      r_hartman
Re: vsftpd, "550, permission denied" while upload
#4
Professional Board Member
Joined: 2009/3/23
From Netherlands
Posts: 701
Haven't done vsftpd this way, but this is from the man page:
Quote:
guest_username
See the boolean setting guest_enable for a description of what constitutes a guest login. This setting is the real username which guest users are mapped to.

Your vsftpd.conf says:
Quote:
guest_username=ftp

Is the real user used ftp, which then would have read access only?
What happens if you set the mode of /var/ftp/virtual_users/ftpi to 777, just for test, or change the owner of that dir to ftp?
_________________
René

Recommended reading for new forum users: FAQ & Readme First
Posted on: 2012/2/24 10:48
Create PDF from Post Print
Top
  •  mariodeng
      mariodeng
Re: vsftpd, "550, permission denied" while upload
#5
Newbie
Joined: 2012/2/23
From
Posts: 4
chmod 777 /var/ftp/virtual_users/ did not help.

With the ANONYMOUS user everything is fine. Can join the server, download files and no permission to upload.

But with the virtual user I can't upload. No matter what I change with the permissions.
Posted on: 2012/2/24 12:51
Create PDF from Post Print
Top
  •  mariodeng
      mariodeng
Re: vsftpd, "550, permission denied" while upload
#6
Newbie
Joined: 2012/2/23
From
Posts: 4
Now I switched to local users, this works fine.
Posted on: 2012/2/25 14:39
Create PDF from Post Print
Top
  •  bkamen
      bkamen
Re: vsftpd, "550, permission denied" while upload
#7
Peeking in the Member Window
Joined: 2009/12/6
From Central Illinois, USA
Posts: 15
So are you saying you gave up on virtual users or ??

I'm trying to get vsftpd working and the write part is the only thing that's still not working.

Same error - 550 Permission Denied

-Ben
Posted on: 2012/5/7 17:59
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: vsftpd, "550, permission denied" while upload
#8
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Please review the recommended reading and do not hijack threads. Start your own thread to have the best chance of getting the help you need. Having your post hidden in an old thread is a sure way to get it ignored by the majority of forum users, and mariodeng has not even logged on in months.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/7 18:04
Create PDF from Post Print
Top
  •  bkamen
      bkamen
Re: vsftpd, "550, permission denied" while upload
#9
Peeking in the Member Window
Joined: 2009/12/6
From Central Illinois, USA
Posts: 15
Quote:

pschaff wrote:
have you read Chroot vsftpd with non-system users ?


what a weird wiki...

users that aren't part of the system but the author of that wiki hands out a script to add users that does:

/usr/sbin/useradd -d "${HOMEDIR}/$USERNAME" -s "/sbin/nologin" -c "$FULLNAME" $USERNAME


That seems like adding a real user to the system to me.
Posted on: 2012/5/7 18:06
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: vsftpd, "550, permission denied" while upload
#10
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Please start a fresh thread. This one is now locked.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/7 18:09
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You cannot view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com