Questions tagged [vsftpd]
`vsftpd` is a fast, stable GPL-licensed FTP server for Unix/Linux systems.
366
questions
0
votes
0
answers
19
views
VSFTPD - Issue with chroot and s3fs
I have a small issue with VSFTPD, and I'm not able to resolve it yet, so I'm coming here to get your tips !
The user has a ftp directory in its home, which is a mount point through s3fs, to access a ...
0
votes
0
answers
45
views
Linux Debian ACL, is default mask overriden by something in FTP?
I have an Linux Debain 10 server running an web project.
The project (parent) folder is as follows:
ls -la:
drwxrwxr--+ 7 some_user some_group 4096 Jul 21 11:01 .
getfacl:
# file: .
# owner: ...
0
votes
0
answers
37
views
Why when using the same FTP username and password to login into FTP server, I can upload files and my client can't?
I created FTP server using vsftpd package on Ubuntu server on AWS EC2. I gave the user local_umask=022. I login using the FTP username password, I'm able to upload and delete files. I have tried using ...
0
votes
0
answers
67
views
Error while installing VSFTPD in passive mode - 500 OOPS: could not bind listening IPv4 socket
I am trying to install and connect to FTPS server (passive mode) locally. I have read similar topics in this community, but still can't fix the problem or find an error in the vsftpd.conf. Firewall is ...
0
votes
0
answers
26
views
vsftpd implicit ftp server
I'm trying to set up ftp server with ftps connection. I need it to test my code that uses bunch other ftp servers who use implicit ssl. So far I didn't manage to set it up. Can't find much useful info ...
0
votes
0
answers
44
views
Multiple users chrooted to single directory when using SFTP
Heyho,
so, while experimenting with setting up my own webserver on a Raspberry Pi, I've come up with something that should be quite simple in my opinion, but seems to be quite hard (or I can't find ...
0
votes
0
answers
61
views
vsftpd with MySQL 8 - login not working
I try to set up vsftpd using MySQL database for login users via pam.d
I have this config in /etc/pam.d/vsftpd:
# Standard behaviour for ftpd(8).
auth required pam_listfile.so item=user sense=...
1
vote
1
answer
42
views
FTP server for content distribution
I need to set up an FTP server for distributing various versions of a software package to a number of user accounts.
To avoid copying the files to each user's ftp home folder, I would like to set up a ...
1
vote
1
answer
190
views
Redirect active FTP traffic to another server using iptables
Network Scheme - IP addresses are fictitious
Firewall SO: Centos 6
I recently enabled two-factor authentication, using Google Authenticator, and with that transfers via SCP for some users were ...
0
votes
0
answers
118
views
vsftpd environment variable user_config_dir not working
The vsftpd manual describe how to deal with multiple users on the FTP server via an environment variable called user_config_dir :-
user_config_dir
This powerful option allows the override of any ...
0
votes
0
answers
780
views
vsFTPd 3.0.5, 331 Please specify the password. Password: 530 Login incorrect. Login failed. Centos Stream 9
On Centos Stream 9
when I try to connect via FTP it says
vsFTPd 3.0.5, 331 Please specify the password. Password: 530 Login incorrect. Login failed.
The username /password are correct I treid many ...
0
votes
0
answers
40
views
How can I suppress . and .. when using curl against vsftpd?
When using curl to get a directory listing from a remote host running vsftpd, how can you suppress "." and ".." from being listed?
Consider ...
curl --insecure --user 'name:pass' ...
-1
votes
1
answer
370
views
Error connecting to ftp: Recv failure: Connection reset by peer
I'm trying to connect to the server running vsftpd:
$ sudo systemctl status vsftpd
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: ...
1
vote
1
answer
115
views
vsftpd interrupting uploas with error 451
From sometime vsftpd crashes an upload of a client almost everyday. Client uploads usually 4 big files (> 1 GB) and a bunch of smaller ones. At least one of these files, usually a big one, is ...
0
votes
0
answers
578
views
ftps setup with client certificate verification
I'm trying to set up an ftps server (vsftpd) where the login method from the clients will not be through password but through client certificate verification.
As I have not been successful from what I ...
0
votes
1
answer
660
views
Can't chroot users correctly with vsftpd
I used this tutorial to install vsftp.
Everything seems to work fine except for two things:
Even though I set local_root=/home/$USER/ftp the default location
when I use any ftp-client is /home/$USER.
...
0
votes
1
answer
2k
views
VSFTPD does not work with SSL
I am trying to enable ssl on my vsftpd server, it works without SSL, but when I try to install this certificate it gives me the following error: Process: 1314 ExecStart=/usr/sbin/vsftpd /etc/vsftpd....
0
votes
0
answers
508
views
How to configure vsftpd to set correct permissions, group and owner (Apache Webserver) of newly created files?
I installed vsftpd and I can login with the new user sftp to the server. But if I create a new file via FileZilla the new file has got 755 permission and its group is not www-data (33).
Screenshot ...
0
votes
1
answer
554
views
file persmissions for a group on FTP server (vsftp)
I've set up an FTPS server on an EC2 linux machine using VSFTPD, I changed the file_open_mode and local_umask in vsftpd.conf file to
local_umask=0007
file_open_mode=0777
This indeed give the rwx ...
0
votes
1
answer
384
views
VSFTPD default permissions for new files vs new directories
I'm running vsftpd and have a specific question:
The file_open_mode and local_umask options let me configure, what permissions a newly created file/folder should have.
The problem:
I want 0660 for new ...
1
vote
0
answers
383
views
How to hide Folders and files outside ftp user home
I have same problem like in this topic
https://serverfault.com/questions/576143/how-to-hide-folders-for-ftp-user-jailed-to-user-home
but this solutions not works for me.
My steps:
added user
useradd ...
-1
votes
1
answer
717
views
SFTP client connection fails using hostname
I have configured a debian server, hosting a website, for FTPS access using vsftpd. Port 22, SSL enabled.
When testing the connection with FileZilla, I successfully connect if I put the server's IP ...
0
votes
0
answers
672
views
Can't ftp on active mode from ec2 instance (as a client)
We need to ftp on "active mode" using Ubuntu ec2 instance as a client on a remote not ec2 ftp server.
Unfortunately we can't use sftp functionality. And we are able to connect using passive ...
0
votes
2
answers
512
views
fail2ban not banning "matched" IPs from vsftp log
Using fail2ban to secure the vsftp login:
jail.local
[vsftpd]
enabled = true
bantime = 600
findtime = 5000
maxretry = 1
port = ftp,ftp-data
action = iptables-multiport
logpath = /var/log/vsftpd/...
0
votes
1
answer
82
views
Allow FTP for user1 and FTPS for user2 in ubuntu
Is this possible to allow FTP protocol for user1 and use FTPS for user2 in Ubuntu 18.04?
I'm using vsftpd with the following configuration
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=...
0
votes
0
answers
1k
views
vsftpd : permission denied
Running on debian10
My website :
/home/mysite.com drwxr-xr-x 16 www-data www-data
I added a new user with
adduser alex
Content of /etc/vsftpd.conf
nano /etc/vsftpd.conf
listen=YES
listen_ipv6=NO
...
0
votes
1
answer
99
views
symlink and mounting ftp host on another machine
So I have machine 1 that has vsftpd installed and machine 2 that needs to mount distant ftp folder.
However machine 2 also needs to access symlink, which is what fails.
No chroot as only lan access is ...
0
votes
0
answers
181
views
Stop user to download file over SFTP
I have SFTP server and dont want to provide get (download) permission to the few users.
Is it possible to disable get command for few users?
PFB my vsftpd.conf
[root@kbdc-sftp-01 vsftpd]# cat vsftpd....
0
votes
1
answer
813
views
Can't Install VSFTPD on CentOS 7 - "No package vsftpd available"
Hi i want to install VSFTPD on my CentOS 7 server but it could not find the package and says "No package vsftpd available". Do i need to add another repo or do you know how to figure out ...
0
votes
1
answer
4k
views
Centos7 cannot connect to FTP server , 200 PORT command successful. Consider using PASV. 425 Failed to establish connection
i'm trying to connect linux ftp server in window command prompt
it works fine when ftp port is default (20, 21)
it's not working after i changed the default port of FTP , FTP-DATA
yes i did checked ...
0
votes
0
answers
272
views
Modern alternative for pam_userdb (for use with vsftpd)
Quite some years ago, I setup a vsftpd server with virtual users, according to some howtos (still) to be found on the internet, using pam_userdb.
Like this: A file called /etc/pam.d/vsftpd.virtual:
#%...
0
votes
1
answer
782
views
Can the same sever accept both Explicit and Implicit FTPS?
I am using VSFTPD on an Ubuntu server.
I have 2 clients who want to connect to this FTP server, one of them uses FTPS with Explicit Authentication and the other client uses FTPS with implicit ...
0
votes
0
answers
713
views
VSFTPD: 500 OOPS: unrecognised variable in config file: local_root
I have a problem with vsftpd configuration. My vsftpd version is 3.0.3 When I'm trying add local_root variable to serwer configuration vsftpd stops working. How to fix this problem?
My vsftpd config:
...
0
votes
0
answers
411
views
Clustered vsftpd service stops working with no error log
We've got a pacemaker cluster of vsftpd server made of two nodes in a active/pasive scheme. We have experienced the following behaviour.
vsftpd.log stops recording activity while xferlog keeps ...
0
votes
1
answer
13k
views
sftp server throws Permission denied (publickey)
I'm setting up WordPress site on Apache server with SFTP enabled.
After configuring all the necessary in /etc/vsftpd.conf
I generated ssh keys with ssh-keygen -t rsa which produced private and public ...
1
vote
0
answers
2k
views
net.netfilter.nf_conntrack_helper=1 a security risk?
For a public file archive with an anonymous ftp server (vsftpd) I need to restore passive ftp, which ceased to work after upgrading Ubuntu 16 LTS to 18 LTS some time ago (with 20 to follow). Previous ...
1
vote
1
answer
3k
views
Client not able to connect to FTP server (only filezilla works)
I have created a FTP Server on a Amazon-EC2 instance following this DigitalOcean Tutorial, I can login normally and that's the only part that works remotely using the shell(connecting from server to ...
0
votes
1
answer
623
views
ftp over tls refused even with all ports properly forwarded
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
...
0
votes
1
answer
3k
views
Active mode vsftpd configuration
i have a question about vsftp please !
if i use active mode for my ftp server , should i see that my vsftp server is listening on 21 and 20 port when i use netstat ??
when i test
sudo netstat -lnp | ...
-1
votes
1
answer
739
views
vsftp work in terminal but not on filezilla and browser
I work under in a docker image, under a VPS!
i have install vsftp in my ubuntu 20.04! at the beginning I tested ftp 127.0.0.1 in the command line and everything goes well I created a user and I tested ...
0
votes
0
answers
571
views
vsftpd says : 530 Login incorrect
i am trying to connect a ftp user
it is showing
[root@host etc]# lftp testuser@:::
Password:
lftp testuser@:::~> ls
ls: Login failed: 530 Login incorrect.
lftp testuser@:::~>
and my vsftpd....
1
vote
0
answers
101
views
Allow ftp user to read and write his home, except some subfolders
I have vsftp installed on my webserver and I need to "jail" a specific account (say "newdev") to a folder (/var/www/[site.com]) so that account cannot read or write outside of that ...
0
votes
0
answers
556
views
Trying to understand vsftpd log file
I'm currently learning Linux and using FTP however I can't make sense of the log file any help would be appreciated.
root@ubuntu:/var/log# cat vsftpd.log
Mon Jan 18 06:39:48 2021 [pid 2] CONNECT: ...
0
votes
1
answer
2k
views
Vsftpd : anonymous configuration for full access
I need to deploy an FTP server for intranet usages (anonymous only) and I've selected Vsftpd who seems to be easy to configure. Here's my configuration :
listen=YES
local_enable=NO
write_enable=YES
...
0
votes
1
answer
857
views
vsftpd Authenticating FTP server against Windows AD server not working Ubuntu
I'm trying to authenticate vsftpd on an Ubuntu server against my Active directory server. I have joined the domain successfully following this article:
https://nerdonthestreet.com/wiki?find=...
4
votes
1
answer
13k
views
How to add username or change password in vsftpd in Ubuntu 16.04?
I have gotten access to a server which is configured by another person and I am now at the point where I am not able to access through ftp due to the fact that I do not have the ftp username and ...
0
votes
1
answer
2k
views
Can't connect to Vsftpd Server - Passive reply with unroutable address
I have installed Vsftpd Server listening on port 21 in ubuntu server. I've forwarded a port in my router to forward external port 8500 to internal port 21 where my vsftpd server is listening on. ...
0
votes
0
answers
1k
views
VSFTPD SSL Error Ubuntu Server
Hi i create an vsftpd server in Ubuntu Server 20.04.1 LTS and i have a error, this is my confing file, the error and the comanand who i created the ssl keys. (sorry for my english, its so bad)
My ...
0
votes
1
answer
3k
views
VSFTPD: set a user's default directory to NOT their chroot directory
I have a VSFTPD setup in which users are chrooted to their home directories. Standard stuff. But this requires all of their home directories to be unwritable to them (to avoid security issues.) No ...
0
votes
1
answer
3k
views
How to fix vsftpd error: 500 OOPS: cannot change directory
I am trying to setup vsftpd for anonymous-only, read-only access on my Ubuntu 20.04 VM. Home directory is /home/ftp/filebase. When I try to login, I get the error
500 OOPS: cannot change directory: &...