View Single Post
Tuổi 15-11-2018, 12:00 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Fix lỗi: Cannot change user passwords Directadmin,
Fix lỗi: Password can't change / No Error Message


In DA as admin, I can request the change, but it always answers with an error.
DA says : "Error changing password"
=================
Error changing password

Click here to return to the main page

Details

=================


Bạn không thể thay đổi password User của Directadmin.


Hoặc SSH vào gõ lệnh passwd user để thay đổi cũng không được.


I linked /usr/bin/passwd to /etc/passwd with

ln /etc/passwd /usr/bin/passwd

I still have the same error (even when restarting : service directadmin restart ) because /usr/bin/passwd is permission denied :

sh: /usr/bin/passwd: Permission denied




Cách Fix: Copy lại file /etc/shadow từ Backup nếu có.


Hoặc tạo 1 user mới sau đó vào file Shadow xem thông tin password rồi copy đoạn password mã hóa này chèn vào User tương ứng cần thay đổi là xong


Nó dạng như sau:




====================


cpt:$1$5zh49hR6$xqz02G3t9pwUQppYYqQhC/:17410:0:99999:7:::
User1:$1$b3eqxaLD$DDEMRwcRCsJ/GOup.scpz0:17850:0:99999:7:::
Useroipin:$1$sJSIn0Eb$uCRTptvLYQdv3QFqp2SC2/:17801:0:99999:7:::
Usngtest:$1$b3eqxaLD$DDEMRwcRCsJ/GOup.scpz0:17850:0:99999:7:::


====================


  Trả lời ngay kèm theo trích dẫn này