I know how to set new password of root in ubuntu 10.04 if I don't know root pasword and grub has no password . I want to know that whether I could get the old password which was set before I changed it. Does some file or command can give me access to old password of root
migrated from stackoverflow.com Jan 12 '12 at 9:42
This question came from our site for professional and enthusiast programmers.
I'm not sure whether the password is saltet. If not, a rainbow table could help you crack it.
Normally, root should not have a password on Ubuntu at all, but you should use the sudo-mechanism to do sudo-tasks.
will show you, whether there is or not.
For me this reveals
which means, root has no password ("!" in second field, not a long hashcode).
A weak password might be cracked by brute force. A strong, salted password would be too expensive to crack and still last years.
for further details.