سلام خسته نباش ftp اجرا نمیشه
systemctl status vsftpd
× vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-03-05 03:29:26 +0330; 8s ago
Process: 40474 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
Process: 40475 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
Main PID: 40475 (code=exited, status=2)
CPU: 6ms
مارس 05 03:29:26 mamad-HP systemd[1]: Starting vsftpd FTP server...
مارس 05 03:29:26 mamad-HP systemd[1]: Started vsftpd FTP server.
مارس 05 03:29:26 mamad-HP systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
مارس 05 03:29:26 mamad-HP systemd[1]: vsftpd.service: Failed with result 'exit-code'.
اینم فایل کانفینگ
2 # Example config file /etc/vsftpd.conf
3 #
4 # The default compiled in settings are fairly paranoid. This sample file loosens things up a bit, to make the ftp daemon more usable. Please
5 # see vsftpd.conf.5 for all compiled in defaults.
6 #
7 # READ THIS: This example file is NOT an exhaustive list of vsftpd options. Please read the vsftpd.conf.5 manual page to get a full idea of
8 # vsftpd's capabilities.
9 #
10 #
11 # Run standalone? vsftpd can run either from an inetd or as a standalone daemon started from an initscript.
12 listen=YES
13 #
14 # This directive enables listening on IPv6 sockets. By default, listening on the IPv6 "any" address (::) will accept connections from both
15 # IPv6 and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6 sockets. If you want that (perhaps because you want to listen
16 # on specific addresses) then you must run two copies of vsftpd with two configuration files.
17 listen_ipv6=YES
18 #
19 # Allow anonymous FTP? (Disabled by default).
20 anonymous_enable=NO
21 #
22 # Uncomment this to allow local users to log in.
23 local_enable=YES
24 #
25 # Uncomment this to enable any form of FTP write command. write_enable=YES
26 write_enable=YES
27 #
28 # Default umask for local users is 077. You may wish to change this to 022, if your users expect that (022 is used by most other ftpd's)
29 local_umask=022
30 #
31 # Uncomment this to allow the anonymous FTP user to upload files. This only has an effect if the above global write enable is activated. Also,
32 # you will obviously need to create a directory writable by the FTP user.
33 #anon_upload_enable=YES
34 #
35 # Uncomment this if you want the anonymous FTP user to be able to create new directories. anon_mkdir_write_enable=YES
36 #
37 # Activate directory messages - messages given to remote users when they go into a certain directory.
# Activate directory messages - messages given to remote users when they go into a certain directory.
38 dirmessage_enable=YES
39 #
40 # If enabled, vsftpd will display directory listings with the time in your local time zone. The default is to display GMT. The times returned
41 # by the MDTM FTP command are also affected by this option.
42 use_localtime=YES
43 #
44 # Activate logging of uploads/downloads.
45 xferlog_enable=YES
46 #
47 # Make sure PORT transfer connections originate from port 20 (ftp-data).
48 connect_from_port_20=YES
49 #Enable this and the server will recognise asynchronous ABOR requests. Not recommended for security (the code is non-trivial). Not enabling
68 # it, however, may confuse older FTP clients.
69 #async_abor_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
103 #
104 # This string is the name of the PAM service vsftpd will use.
105 pam_service_name=vsftpd
106 #
107 # This option specifies the location of the RSA certificate to use for SSL encrypted connections.
108 rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO
109