Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Hướng dẫn sử dụng Direct Admin (http://quantrinet.com/forum/forumdisplay.php?f=196)
-   -   Fix lỗi: Cannot change user passwords Directadmin, (http://quantrinet.com/forum/showthread.php?t=10158)

hoctinhoc 15-11-2018 12:00 PM

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:::


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


:cuoi4:


Bây giờ là 06:36 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.