Does anyone know why Solaris requires the "old" root password when changing the password as root or with sudo? How can this be changed to work like Linux where only the new password needs to be specified? It also should not prompt for an LDAP password for "root".
# uname -a SunOS hostname 5.9 Generic_118558-10 sun4us sparc FJSV,GPUZC-M # id uid=0(root) gid=1(other) # sudo passwd root Password: LDAP Password: passwd: Sorry, wrong passwd Permission denied
As seen above, it wants the current password for 'root' before allowing a new password to be set. If the current password is specified correctly, then it prompts to set the "New Password":
# sudo passwd root Password: (Entered current password) New Password: Enter login(LDAP) password: (Just press enter) Password change aborted Re-enter new Password: passwd: password successfully changed for root