大家好:
前三天有使用者反應,發現 vsftp 服務出了狀況,不論是那個使用者,
只要用 FTP 都是登入到同一個目錄下。
但若是用 SSH 登入,使用者目錄就是正常的。
這三天內,只有刪不存在使用者,用的是 userdel -r ,並沒有新增使用者。
/etc/passwd 大約如下:
a49501010:x:34793:100:49501010:/home/a49501010:/bin/bash
a49501023:x:34794:100:49501023:/home/a49501023:/bin/bash
a49501036:x:34795:100:49501036:/home/a49501036:/bin/bash
a49501049:x:34796:100:49501049:/home/a49501049:/bin/bash
(下略四萬筆...)
/etc/vsftpd/vsftpd.conf 如下:
anonymous_enable=NO
local_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
async_abor_enable=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
use_localtime=YES
pasv_enable=YES
pasv_min_port=5800
pasv_max_port=5999
max_per_ip=240
目前進行的檢查有:
1.重裝 vsftpd -OK 版本 2.0
2.pwck -OK
3.grpck -OK
打算的動作有:
1.fsck -這動作的風險很大
先謝謝各位了 (^_^)
--
前三天有使用者反應,發現 vsftp 服務出了狀況,不論是那個使用者,
只要用 FTP 都是登入到同一個目錄下。
但若是用 SSH 登入,使用者目錄就是正常的。
這三天內,只有刪不存在使用者,用的是 userdel -r ,並沒有新增使用者。
/etc/passwd 大約如下:
a49501010:x:34793:100:49501010:/home/a49501010:/bin/bash
a49501023:x:34794:100:49501023:/home/a49501023:/bin/bash
a49501036:x:34795:100:49501036:/home/a49501036:/bin/bash
a49501049:x:34796:100:49501049:/home/a49501049:/bin/bash
(下略四萬筆...)
/etc/vsftpd/vsftpd.conf 如下:
anonymous_enable=NO
local_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
async_abor_enable=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
use_localtime=YES
pasv_enable=YES
pasv_min_port=5800
pasv_max_port=5999
max_per_ip=240
目前進行的檢查有:
1.重裝 vsftpd -OK 版本 2.0
2.pwck -OK
3.grpck -OK
打算的動作有:
1.fsck -這動作的風險很大
先謝謝各位了 (^_^)
--
All Comments