||02-17-2013 01:32 PM
without knowing the distro you are using ...
if this it Ubuntu 12.10 there is NO root password ( just your normal user's )
if fedoea 18
-- the logging in as root --- bit will require the pam hack ,IF by "logging in" you mean to the GUI -- Gnome3
And that will cause problems
--- and ---
to quote the manual page
If an old password is present, the user is first promted for it and
the password is compared agaisnt the stored one. This can be changed,
depending which PAM modules are used. An administrator is permitted
to bypass this step so that forgotten passwords may be changed.
After the user is authenticated, password aging information are
checked to see if the user is permitted to change their password at
this time. Else passwd refuses to change the password.
The user is then prompted for a replacement password. Care must be
taken to not include special control characters or characters, which
are not available on all keyboards.
If the password is accepted, passwd will prompt again and compare the
second entry against the first. Both entries are require to match in
order for the password to be changed.