Khắc phục lỗi Koloxo không đăng nhập đc FTP, Koloxo không thể login FTP

Cách 1:  Nhanh gọn, dễ dàng
touch /var/log/kloxo/pureftpd.log

vim /etc/xinetd.d/pureftp

Sửa các thông tin cũ thành thông tin mới như sau:

service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/pure-ftpd
# server = /usr/sbin/pure-config.pl
server_args = /etc/pure-ftpd/pure-ftpd.conf
# server_args = -A -c5000 -C8 -D -fftp -H -I15 -lpuredb:/etc/pure-ftpd/pureftpd.pdb -lunix -L2000:8 -m4 -s -p30000:50000 -U133:022 -u100 -E -Oclf:/var/log/kloxo/pureftpd.log -g/var/run/pure-ftpd.pid -k99 -Z
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
# groups = yes
# flags = REUSE
}

Nhấn "i" để sửa, nhấn :qw để thoát + lưu lại
Cuối cùng:
service xinetd restart

Cách 2: Hơi phức tạp tý
You cannot login inspite of resetting password in Kloxo ?

First check the logs

tail -n 200 /var/log/messages | grep ftp

See if you get the most common error

[ERROR] Unable to switch capabilities : Operation not permitted

Follow the below steps

Remove the pure-ftpd

yum remove pure-ftpd

Download latest FTP from http://download.pureftpd.org/pub/pure-ftpd/releases/

vinastar.net the FTP zipped file

cd pure-ftpd

./configure –with-everything –with-paranoidmsg –without-capabilities –with-virtualchroot

make && make install

Now cd /etc/xinetd.d/

vi pure-ftp.conf

remove all entries and add the below entries,

service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/pure-ftpd
server_args = -A -c5000 -C8 -D -fftp -H -I15 -lpuredb:/etc/pure-ftpd/pureftpd.pdb -lunix -L2000:8 -m4 -s -p30000:50000 -U133:022 -u100 -E -Oclf:/var/log/kloxo/pureftpd.log -g/var/run/pure-ftpd.pid -k99 -Z
groups = yes
flags = REUSE
}

Once done restart using command

“service xinetd restart”

Now your FTP should work
Bài viết này có ích cho bạn không? 0 phiếu cảm nhận dễ hiểu & thực hiện (6 Phiếu)