Studying the CentOS/RHEL sysadmin manual, I can't understand if there are or what are the differences between these commands.


passwd is a traditional unix command. lpasswd appears to belong to the libuser project, "a standardized interface for manipulating and administering user and group accounts."

% ls -li =passwd =lpasswd              
3149052 -rwsr-xr-x. 1 root root 30768 Feb 17  2012 /usr/bin/passwd
3155939 -rwxr-xr-x  1 root root 33240 Jul 10  2015 /usr/sbin/lpasswd
% rpm -qf =passwd
% rpm -qf =lpasswd
% rpm -q --queryformat='%{URL}\n' libuser 

lpasswd lacks a setuid bit, so that's interesting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.