Product SiteDocumentation Site

11.3. سرور فایل FTP

FTP یا File Transfer Protocol یکی از اولین پروتکل‌های اینترنت است (RFC 959 که در سال ۱۹۸۵ ایجاد شد!). قبل از پیدایش وب، از آن به منظور توزیع فایل در شبکه استفاده می‌شد (پروتکل HTTP در سال ۱۹۹۰ و نسخه ۱.۰ آن به عنوان RFC 1945 در سال ۱۹۹۶ ایجاد شد).
This protocol allows both file uploads and file downloads; for this reason, it is still widely used to deploy updates to a website hosted by one's Internet service provider (or any other entity hosting websites). In these cases, access is enforced with a user identifier and password; on successful authentication, the FTP server grants read-write access to that user's home directory.
سایر سرورهای FTP به منظور توزیع فایل‌ها برای دانلود عمومی آن‌ها بکار می‌روند؛ بسته‌های دبیان نمونه خوبی هستند. محتوای این سرورها از سایر سرورهای راه‌دور جغرافیایی بدست می‌آید؛ تا در اختیار کاربران نزدیک به آن سرور قرار بگیرند. یعنی نیازی به احرازهویت کاربر نیست؛ به همین دلیل به این حالت عملیات ... گفته می‌شود. به عبارت صحیح‌تر، برنامه‌ها با استفاده از نام کاربری anonymous احرازهویت می‌شوند؛ گذرواژه به صورت پیشفرض معمولا نشانی ایمیل است، که سرور آن را نادیده می‌گیرد.
Many FTP servers are available in Debian (ftpd(-ssl), proftpd-basic, pure-ftpd and so on), which all provide the virtual ftp-server package. Please note that the pyftpd package, however, has been removed from the Debian project due to not being actively maintained anymore and being incompatible with Python 3. The Falcot Corp administrators picked vsftpd because they only use the FTP server to distribute a few files (including a Debian package repository); since they don't need advanced features, they chose to focus on the security aspects.
نصب این بسته یک کاربر سیستمی ftp ایجاد می‌کند. از این حساب کاربری همیشه برای ارتباطات FTP ناشناس استفاده می‌گردد که دایرکتوری خانه آن (/srv/ftp/) محل قرارگیری تمام فایل‌های عمومی برای سایر کاربران این سرویس است. پیکربندی پیشفرض آن در /etc/vsftpd.conf نیازمند برخی تغییرات است تا امکان دانلود فایل‌های عمومی بزرگ برای کاربران فراهم شود: دسترسی ناشناس باید فعال (anonymous_enable=YES) و دسترسی فقط-خواندنی کاربران محلی (local_enable=NO) باید غیرفعال شود. دومی از اهمیت خاصی برخوردار است، چرا که پروتکل FTP از هیچ شیوه رمزنگاری استفاده نمی‌کند و گذرواژه کاربر می‌تواند در طی مسیر شنود شود.
FTP and FTPS resources can be accessed with a variety of clients, with and without a graphical user interface, and they can also be mounted locally using the curlftpfs command from the similarly named package.