[Tutor] something weird
Alan Gauld
alan.gauld at btinternet.com
Thu Dec 12 19:22:49 CET 2013
On 12/12/13 17:13, Paolo Supino wrote:
> print "password hash: " + crypt.crypt("password")
>
>
> When I try to do su - [user] (after copying the hash into /etc/shadow)
> the password accepted is 'password'
You are passing the literal string password to the crypt() call.
I suspect that has something to do with it.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list