Linux伺服器---ftp配置

一生有你llx發表於2018-12-10

其他配置

在配置檔案中,還有一些關於vsftpd的其他設定,這裡列出來

# Example config   file  /etc/vsftpd/vsftpd.conf

# Allow anonymous   FTP? (Beware - allowed by default if you comment this out).

anonymous_enable=YES       // 是否允許匿名登入

#

# Uncomment this   to allow local users to log in.

local_enable=YES         // 是否允許本地使用者登入

#

# Uncomment this   to enable any form of FTP write command.

write_enable=YES        // 是否允許寫操作

#

# 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)

local_umask=022      // 本地用農戶許可權掩碼

#

# 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, you will

# obviously need   to create a directory writable by the FTP user.

#anon_upload_enable=YES     // 是否允許匿名使用者上傳

#

# Uncomment this   if you want the anonymous FTP user to be able to create

# new   directories.

#anon_mkdir_write_enable=YES      // 是否允匿名使用者建立目錄

#

# Activate   directory messages - messages given to remote users when they

# go into a   certain directory.

dirmessage_enable=YES    // 是否允許獲取目錄資訊

# If you want,   you can arrange for uploaded anonymous files to be owned by

# a different   user. Note! Using "root" for uploaded files is not

# recommended!

#chown_uploads=YES        // 是否允許其他使用者擁有匿名使用者上傳的檔案

#chown_username=whoever

# You may change   the default value for timing out an idle session.

#idle_session_timeout=600    // 連線空閒超時

#

# You may change   the default value for timing out a data connection.

#data_connection_timeout=120      // 資料請求超時

# You may   activate the "-R" option to the builtin ls. This is disabled by

# default to   avoid remote users being able to cause excessive I/O on large

# sites. However,   some broken FTP clients such as "ncftp" and "mirror" assume

# the presence of   the "-R" option, so there is a strong case for enabling it.

#ls_recurse_enable=YES    // 是否允許 ls 命令使用 -R 引數,遞迴

# You may specify   an explicit list of local users to chroot() to their home

# directory. If   chroot_local_user is YES, then this list becomes a list of

# users to NOT   chroot().

# chroot_local_user=YES    // 是否允許使用者切換目錄

# chroot_list_enable=YES    // 是否允許指定的使用者切換目錄,使用者名稱單在 /etc/vsftpd/chroot_list 檔案中

# (default   follows)

# chroot_list_file=/etc/vsftpd/chroot_list  // 這個檔案中的使用者不能切換目錄

    


做了一個Linux學習的平臺,目前出來一個雛形,各位可以參考使用
連結: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ   密碼:n7bk


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29270124/viewspace-2221895/,如需轉載,請註明出處,否則將追究法律責任。

相關文章