VSFTPD 本地使用者登入。
建立本地使用者web.
改/etc/vsftpd/vsftpd.conf
[root@sh1 ~]# cat /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=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 override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# 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
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# 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
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# 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
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd with two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
pam_service_name=vsftpd
#userlist_enable=YES
tcp_wrappers=YES
pasv_promiscuous=YES
#local_root=/home/web
===========================
===========================
如果在登陸時出現如下錯誤:
Connected to 192.168.1.19.
220 (vsFTPd 2.2.2)
User (192.168.1.19:(none)): xxx
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/xxx
500 OOPS: priv_sock_get_cmd
Connection closed by remote host.
解決方法:
//setsebool使用-P引數,無需每次開機都輸入這個命令
# setsebool -P ftpd_disable_trans 1
或者
# setsebool -P ftp_home_dir 1
# service vsftpd restart
或者
直接關閉SELINUX
=============================
=============================
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9697/viewspace-1046170/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql使用者本地登入localhost和127.0.0.1區別MySqllocalhost127.0.0.1
- win10怎麼改本地登入 win10如何改本地賬戶登入Win10
- [20211108]sqlplus 本地登入緩慢.txtSQL
- Linux 踢出登入使用者Linux
- Android使用者登入功能完成Android
- MFC 之使用者登入介面
- vsftpdFTP
- vsftpd多例項多使用者不同許可權FTP
- [20211109]sqlplus本地登入緩慢分析2.txtSQL
- VuePress 中增加使用者登入功能Vue
- Laravel JWT 多表多使用者登入LaravelJWT
- cookie之登入使用者憑證Cookie
- laravel7 多使用者登入Laravel
- 如何把 Laravel 預設郵箱登入改成使用者名稱登入Laravel
- Laravel5.6 實現後臺管理登入(自定義使用者表登入)Laravel
- Asp.Net MVC記住使用者登入資訊下次直接登入功能ASP.NETMVC
- 使用者登入管理的幾個命令
- 查詢使用者登入資訊sqlSQL
- redis儲存使用者登入資訊Redis
- Windows檢視登入使用者會話Windows會話
- Java Web實現使用者登入功能JavaWeb
- 在Linux中如何禁止使用者登入Linux
- 禁止Laravel同一使用者多次登入Laravel
- 使用者登入時的環境載入順序
- FTP-Vsftpd的高階應用:虛擬使用者FTP
- Oracle 實現多語言(即根據使用者登入的環境自適應本地語言)Oracle
- 【網頁登入】QQ 登入、微信登入、微博登入、GitHub 登入網頁Github
- laravel 實現多使用者體系登入Laravel
- TortoiseSVN如何更換或重置登入使用者
- 如何在 Linux 中建立非登入使用者?Linux
- 設定允許root使用者登入SSH
- Laravel 實現 passport 使用者註冊登入LaravelPassport
- Passport 多使用者表登入 --個人令牌Passport
- 後臺實戰——使用者登入之JWTJWT
- MSSQL不能遠端登入--使用者 'sa' 登入失敗。 (Microsoft SQL Server,錯誤: 18456)SQLROSServer
- (系列十二)Vue3+.Net8實現使用者登入(超詳細登入文件)Vue
- win10 登入介面的使用者怎麼隱藏_如何在win10登入介面登入隱藏帳戶Win10
- win10使用者在登入介面顯示使用者列表Win10
- JWT登入鑑權:避免在使用者操作的過程中JWT到期跳轉登入JWT