انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید




نویسنده موضوع: مشکل در اجرشدن (حل شد)ftp  (دفعات بازدید: 692 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین darksouls

  • Full Member
  • *
  • ارسال: 135
  • جنسیت : پسر
مشکل در اجرشدن (حل شد)ftp
« : 14 اسفند 1400، 06:03 ق‌ظ »
سلام خسته نباش   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
                                                                                                                               

« آخرین ویرایش: 14 اسفند 1400، 10:24 ب‌ظ توسط darksouls »

آفلاین Issac

  • Hero Member
  • *
  • ارسال: 890
  • جنسیت : پسر
    • Mastodon
پاسخ : مشکل در اجرشدن ftp
« پاسخ #1 : 14 اسفند 1400، 07:30 ق‌ظ »
سلام،
تو پرونده پیکر‌بندی اون خط آخر. بنظرم بهتره هر مقداری رو تو یه خط بنویسی نه سه تا مقدار رو در یک خط.(شاید مشکل از اونجا باشه)
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
این پست رو فرستادم که تعداد ارسال‌هام زیاد بشه.

آفلاین darksouls

  • Full Member
  • *
  • ارسال: 135
  • جنسیت : پسر
پاسخ : مشکل در اجرشدن ftp
« پاسخ #2 : 14 اسفند 1400، 10:23 ب‌ظ »
این دستور زدم کامل پاک شود  دوباره نصب زدم دزست شود
apt-get remove vsftpd --purge

آفلاین Dragon-

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 5125
  • جنسیت : پسر
پاسخ : مشکل در اجرشدن (حل شد)ftp
« پاسخ #3 : 15 اسفند 1400، 10:17 ق‌ظ »
اینکه یه نرم‌ا‌فزار رو کلا پاک و دوباره نصب کنید تا مشکلش حل بشه،  زیاد راه حل مناسبی نیست.
احتمالا همونطور که بالا گفتند، مشکل از تنظیمات vsftpd بوده.
میدونید که زکات علم نشر آن است

آفلاین دانیال بهزادی

  • ناظر انجمن
  • *
  • ارسال: 19688
  • جنسیت : پسر
  • Urahara Kiesuke
    • وبلاگ
پاسخ : مشکل در اجرشدن (حل شد)ftp
« پاسخ #4 : 16 اسفند 1400، 11:19 ق‌ظ »
در کل استفاده از ftp در سال ۲۰۲۲ خیلی ایدهٔ جالبی نیست. بهتره از sftp استفاده کنی به جاش.
اگه این ارسال بهت کمک کرد، دنبال دکمهٔ تشکر نگرد. به جاش تو هم به جامعهٔ آزادت کمک کن

آفلاین darksouls

  • Full Member
  • *
  • ارسال: 135
  • جنسیت : پسر
پاسخ : مشکل در اجرشدن (حل شد)ftp
« پاسخ #5 : 16 اسفند 1400، 03:36 ب‌ظ »
سلام ممنون از راهنمایتون دوست عزیز