I am suspecting that the encrypted password which you have used is quite big. I am suggesting following script which you can run.
Code:
#!/usr/bin/python2.4
# -*- coding: latin1 -*-
#
import crypt
import random
import string
def getsalt(chars = string.letters + string.digits):
return random.choice(chars) + random.choice(chars)
print crypt.crypt("testuserpass" , getsalt())
I think you need to install the following module on the computer.
apt-get install python-crypto
so try the same and let me know whether it is working or not.
Bookmarks