change password issue

netlog

New member
Joined
Jun 12, 2017
Messages
2
Hi
i can't change password of any accounts even with Admin level access
it just display this error:

Error changing password
Details
User's System Quotas set

i check system quotas and there is many free space
also i checked passwd with ssh and it does not work
when i type "passwd" in shh consol it ends without any error or message

i tried "which passwd" and output is : /usr/bin/which: no passwd in ((null))


i tried "/etc/passwd" and it's display this output: bash: /etc/passwd: Permission denied

also when i tried "cat /etc/passwd" it's output is as follow:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
....

please let me know how i can solve this problem
please note that my os is Centos v5.1x

Regards
 
Hello,

the command
Code:
which passwd
should return
Code:
/usr/bin/passwd

it's probably you are missing passwd binary on your server, probably due to a server has been hacked. You might try using openssl or generate password somewhere else and then copy it to your CentOS 5 server.


By the way CentOS 5.x is EOL you will hardly find RPM packages for it in official repos, and Directadmin will stop supporting it on March 2018, so you are highly encouraged to migrate to CentOS 6, 7 or other actual supported OS.
 
Hi Dear zEitEr
Thanks for your reply
may i upload passwd binary file from another place?
can you tell me how i can solve this issue?
Regards
 
Back
Top