Questions tagged [vsftpd]

`vsftpd` is a fast, stable GPL-licensed FTP server for Unix/Linux systems.

"vsftpd" stands for "Very Secure FTP Daemon", and focuses on speed, stability, and security. For more information on vsftpd, including releases and updates, see https://security.appspot.com/vsftpd.html.

364 questions
59
votes
5 answers

How to configure vsftpd to work with passive mode

Whenever I install vsftpd on centos, I only setup the jail environment for the users and rest is default configuration of vsftpd. I create user and try to connect with filezila ftp client, but I could not connect with passive mode. I always change…
Toqeer
  • 1,201
  • 3
  • 13
  • 20
44
votes
3 answers

Create new vsftpd user and lock to (specify) home / login directory

I need to periodically give temporary and limited access to various directories on a CentOS linux server that has vsftp installed. I've created a user using useradd [user_name] and given them a password using passwd [password]. I've created a…
zigojacko
  • 1,433
  • 2
  • 12
  • 25
25
votes
3 answers

Why is the chroot_local_user of vsftpd insecure?

I'm setting up on my VPS a vsftpd, and i don't want users be allowed to leave they're ftp home directory. I'm using local_user ftp, not anonymous, so I added: chroot_local_user=YES I've read in a lot of forum post, that this is unsecure. Why is…
p1100i
  • 579
  • 2
  • 7
  • 15
20
votes
3 answers

vsftpd: allow access only for certain users

I want to setup FTP server to allow only certain users, so with vsftpd, I add in vsftpd.conf: local_enable=YES user_config_dir=/etc/vsftpd_user_conf In /etc/vsftpd_user_conf for the unix user foo I set in a file…
Istao
  • 303
  • 1
  • 2
  • 4
16
votes
5 answers

vsFTPd default uploaded file permissions on Ubuntu not working

I have a Server running Ubuntu 12.10 x64, and the last version of vsFTPd. My user example.com has its home folder set on /var/www/example.com, I created a public_html folder inside and gave 777 permisions to it, and removed the writing permissions…
lucasmx
  • 620
  • 1
  • 6
  • 12
15
votes
2 answers

Default owner/permissions of created files via VSFTPD

How do I set the default values of directories and files created to be 775 ? My understanding is that I need to modify the umask on VSFTPD, but how do I know what to change it to?
Ben
  • 3,630
  • 17
  • 62
  • 93
15
votes
6 answers

VSFTPD 530 Login incorrect

I'm trying to get a vsftpd server set up on CentOS 5.3 x64. I'm not able to get any local user login's to work. Here is my…
dw.emplod
  • 343
  • 1
  • 4
  • 10
14
votes
2 answers

vsftp: why is allow_writeable_chroot=YES a bad idea?

There are several thousand blog posts about vsftp and allow_writeable_chroot=YES The common error message: Fixing 500 OOPS: vsftpd: refusing to run with writable root inside chroot () I solved the problem on my server. But one question…
guettli
  • 3,113
  • 14
  • 59
  • 110
14
votes
4 answers

FTP doesn't allow /usr/sbin/nologin user

I want to setup a ftp for couple of ftp-only users with vsftpd. I configured the FTP to enable local user access. It works fine. But once I edit the users' shell to /usr/sbin/nologin, it couldn't log into the FTP with the following error: Response: …
steveyang
  • 623
  • 4
  • 9
  • 15
12
votes
1 answer

Can I configure VSFTPD to listen only to localhost?

I have a legacy app that needs FTP and cannot do SFTP. My solution is: put an FTP server in place using VSFTPD configure the firewall to accept port 21 connections only from localhost Set up an SSH connection from the client with the legacy…
Will Martin
  • 2,381
  • 5
  • 18
  • 18
12
votes
2 answers

vsftpd - local_root=/var/www/sites/$USER doesn't get interpreted?

When I'm trying to connect to FTP server I get: "500 OOPS: cannot change directory:/home/$USER/public_html" when I do echo $USER - I get proper username seems like $USER isn't interpreted inside my /etc/vsftpd.conf when I remove…
Pawel
  • 225
  • 1
  • 2
  • 5
11
votes
3 answers

vsftpd - PAM - MySQL and pam_mkhomedir to create directories

I've been successfully using vsftpd with virtual users connecting with PAM to my mysql DB. Now I'd like to automate creation of user directories with successful vsftpd connection. Here is /etc/pam.d/vsftpd configuration: #%PAM-1.0 session …
Tom
  • 143
  • 2
  • 11
10
votes
3 answers

vsftpd will not accept passwords encrypted with MD5

I am setting up an server with vsftpd to let virtual users access their space. Now it is fully working but only with CRYPT passwords. So sudo htpasswd -c /etc/vsftpd/ftpd.passwd phpmyadmin will not allow me to log in, but sudo htpasswd -c -d…
Marco
  • 287
  • 1
  • 2
  • 12
10
votes
1 answer

How do I set the default group for a vsftpd user's uploads? (ubuntu 10.04)

How do I set the default group for a vsftpd user's uploads? When I upload a file, the files group is set to the username... How do I get it to automatically set to a specific group?
EmpireJones
  • 358
  • 1
  • 4
  • 13
9
votes
1 answer

CentOS 7 - Directories created through VSFTPD not inheriting SELinux contexts

Our company has a webserver with CentOS 7 and our customers manage their websites through FTP (vsftpd). SELinux is in enforcing mode. The issue is that data created/uploadad through VSFTPD is not inheriting the appropriate SELinux context. Let me…
1
2 3
24 25