[blfs-support] Su and Sudo--Getting Both to Work

Bruce Dubbs bruce.dubbs at gmail.com
Mon Dec 2 13:55:08 PST 2013

Dan McGhee wrote:

> Reset my password or root's. This happens when, as me, I run "su" then
> root's password.
> I don't want to change either of the passwords, so I'm thinking
> $ passwd -d dan
> $ passwd dan

su asks for the pw of the new user, usually root.
sudo asks for the user's pw unless the need for a pw is suppressed.

I think you need to update root's pw.  Just retype the same pw to reset 
it in response to the passwd command when running as root.

   -- Bruce

More information about the blfs-support mailing list