0

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 vsftpd.conf archive

listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
ssl=tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_ciphers=HIGH
write_enable=YES
allow_writeable_chroot=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO

The error in systemctl status

The error in systemctl status
● vsftpd.service - vsftpd FTP server
     Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-10-02 13:50:01 UTC; 2s ago
    Process: 1378 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
    Process: 1391 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
   Main PID: 1391 (code=exited, status=2)

Oct 02 13:50:01 maquinafjsmr systemd[1]: Starting vsftpd FTP server...
Oct 02 13:50:01 maquinafjsmr systemd[1]: Started vsftpd FTP server.
Oct 02 13:50:01 maquinafjsmr systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 02 13:50:01 maquinafjsmr systemd[1]: vsftpd.service: Failed with result 'exit-code'.

The comand whit i create the keys

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem
Oct 01 15:52:26 maquinafjsmr vsftpd[3961]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 15:52:26 maquinafjsmr vsftpd[3961]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:05:57 maquinafjsmr vsftpd[4305]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:05:57 maquinafjsmr vsftpd[4305]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:29 maquinafjsmr vsftpd[4402]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:29 maquinafjsmr vsftpd[4402]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:34 maquinafjsmr vsftpd[4408]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:34 maquinafjsmr vsftpd[4408]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:39 maquinafjsmr vsftpd[4413]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:09:39 maquinafjsmr vsftpd[4413]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:18:38 maquinafjsmr vsftpd[4642]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:18:38 maquinafjsmr vsftpd[4642]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:18:42 maquinafjsmr vsftpd[4650]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
Oct 01 16:18:42 maquinafjsmr vsftpd[4650]: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
MrFull12
  • 1
  • 2
  • what does the vsftpd log file tell you? Are there any interesting messages shown, if you run "journalctl -u vsftpd" ? – Lorem ipsum Oct 03 '20 at 12:48
  • I already put it, not everything is since it is a lot but this is the error – MrFull12 Oct 04 '20 at 20:41
  • ok i repair the error, the error is in teh machie, i delete the machine and i put a new machine. – MrFull12 Oct 11 '20 at 16:33
  • @MrFull12 - Can you provide an answer? What happened? What was the problem? How did you solve it? I have exactly the same problem. Thanks. – Greeso May 06 '21 at 22:35

0 Answers0