On Tue, Sep 25, 2001 at 11:34:17AM -1000, Dan Morton wrote:
> Hey all,
> I know this may sound really stupid, but how do you change user passwords
> on an ipaq running linux? I've got the unstable feed with the 2.4.6
> kernel. The standard passwd command doesnt exist on the install that I
> have... Any help would be great.
no problem. just edit your /etc/passwd file.
to build a new password to put in the file, just do this:
perl -e 'print crypt("somerandompassword","somerandomsalt") . "\n";'
where "somerandompassword" is what you want your password to be
and where "somerandomsalt" is some 2 letter salt that you want to use for your
password, just use some random two characters will be fine.
perl -e 'print crypt("somepassword","ae") . "\n";'
aelN5ZQN8hOWk
would mean that for having 'somepassword' as my root password, usign the salt
ae (notice the first two chars in the crypted password are ae) that I'd insert
the value aelN5ZQN8hOWk into /etc/passwd in the appropriate location.
Note: don't try this on systems that don't use crypt() for passwords. I
recommend using the passwd application to generate normal passwords.
-Mandrake
Received on Tue Sep 25 14:05:43 2001
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:11 EDT