Re: Setting root password w/ rootpw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "d" == dan  <info@xxxxxxxxxxxxxxxx> writes:

d> I'd like to assign an encrypted password,
d> but I was curious as to which method you guys use in an effort to
d> simply convert a text password into the encrypted type asked for.

perl -we 'print crypt("plaintext", "salt"). "\n"'

will do.  Replace "plaintext" by the plaintext password you want to
encrypt.  How you replace "salt" depends on what kind of passwords you
want.  If you want the cheezy old-style crypted passwords, use two
randomly generated characters.  If you want new-style MD5 passwords,
use "$1$" followed by up to eight random characters.  (The random
characters should be letters, digits, "." or "/".)

 - J<


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux