Benutzerinformationen überspringen
User
Registrierungsdatum: 07.11.2012
Derivat: Ubuntu
Architektur: 32-Bit PC
Desktop: GNOME 2.x
Quellcode |
|
1 2 3 4 5 |
d-i passwd/user-fullname string user d-i passwd/username string user d-i passwd/user-password-crypted password cyptedpass # md5-hash generieren: echo "secretpass" | md5sum - d-i user-setup/allow-password-weak boolean true d-i user-setup/encrypt-home boolean false |
Quellcode |
|
1 |
echo "secretpass" | md5sum - |
Quellcode |
|
1 |
$ printf "r00tme" | mkpasswd -s -m md5 |
Quellcode |
|
1 |
useradd -m -s /bin/bash -g sudo "CRYPTEDPASSWD" testuser -c "Test User" |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Predat0r« (07.11.2012, 22:19)
Benutzerinformationen überspringen
User
Registrierungsdatum: 14.09.2005
Derivat: Xubuntu
Architektur: 64-Bit PC
Desktop: XFCE
Quellcode |
|
1 |
sudo passwd testuser |
Benutzerinformationen überspringen
User
Registrierungsdatum: 07.11.2012
Derivat: Ubuntu
Architektur: 32-Bit PC
Desktop: GNOME 2.x
Quellcode |
|
1 |
useradd -m -s /bin/bash -g sudo -c "Test User" -p "CRYPTEDPASSWD" testuser |
Meiner Meinung nach kämst du wahrscheinlich auch mit "test" rein.wenn ich zum Beispiel test$1234 eingebe, komme ich mit "test$123" rein, gebe ich jedoch "test$123irgendwasnochsosinnloses" danach beim Login ein, komme ich auch rein
Benutzerinformationen überspringen
User
Registrierungsdatum: 07.11.2012
Derivat: Ubuntu
Architektur: 32-Bit PC
Desktop: GNOME 2.x
Quellcode |
|
1 |
mkpasswd -m sha-512 |
Quellcode |
|
1 |
printf "test123A" | mkpasswd -s -m sha-512 |
Quellcode |
|
1 |
cat /etc/login.defs |
Quellcode |
|
1 |
ENCRYPT_METHOD SHA512 |
Quellcode |
|
1 |
" |
Quellcode |
|
1 |
' |
Quellcode |
|
1 |
$6$fWRvUMJw$pnQ.NhFhxwI.6I42iZEI8euq8t7lpABRuTIQlEsmlBdv0kbbt42EKKIqjrHkRdUxmoclsw/G97PHnGPWe0H/P. |
Quellcode |
|
1 |
test:.NhFhxwI.6I42iZEI8euq8t7lpABRuTIQlEsmlBdv0kbbt42EKKIqjrHkRdUxmoclsw/G97PHnGPWe0H/P.:15651:0:99999:7::: |
Quellcode |
|
1 |
useradd -p '$6$fWRvUMJw$pnQ.NhFhxwI.6I42iZEI8euq8t7lpABRuTIQlEsmlBdv0kbbt42EKKIqjrHkRdUxmoclsw/G97PHnGPWe0H/P.' test |
Quellcode |
|
1 |
test:$6$fWRvUMJw$pnQ.NhFhxwI.6I42iZEI8euq8t7lpABRuTIQlEsmlBdv0kbbt42EKKIqjrHkRdUxmoclsw/G97PHnGPWe0H/P.:15651:0:99999:7::: |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Predat0r« (07.11.2012, 22:09)
mkpasswd -m sha-512
mit manueller Eingabe verschiedener Passwörter z.B. test123A funktioniert nicht, genau so wie
printf "test123A" | mkpasswd -s -m sha-512
Quellcode |
|
1 2 3 4 5 6 |
fredl@iris:/tmp$ printf "test123A" | mkpasswd -s -m sha-512 $6$nEmLiMAeh$b8JM4D.v.gfd1EeZ4MIzJERwhBX4EcfWiLPnwjvu4YWcVGsiU1v5sOk7B3VWQIEc8XNfBgvimqVJhlhYyfrBO1 fredl@iris:/tmp$ sudo usermod -s /bin/bash -g sudo -c "Test User" -p '$6$nEmLiMAeh$b8JM4D.v.gfd1EeZ4MIzJERwhBX4EcfWiLPnwjvu4YWcVGsiU1v5sOk7B3VWQIEc8XNfBgvimqVJhlhYyfrBO1' testuser1 fredl@iris:/tmp$ su testuser1 Passwort:[test123A] testuser1@iris:/tmp$ |
Dann würde ich mal dort nachfragen...Lt. http://www.cyberciti.biz/faq/rhel-centos…ssword-hashing/
Soll das aber mit md5 gehen
'man bash':bei den Double Quotes ich nehme mal an das:
"
? übernimmt er das Doillar-Zeichen nicht, mach ich allerdings ein
'
tut er das?
Zitat
Enclosing characters in single quotes preserves the literal value of each character within the quotes. A single quote may not occur between single quotes, even when preceded by a backslash.
Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, \, and, when history expansion is enabled, !. The characters $ and ` retain their special meaning within double quotes.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# If set to "yes", new passwords will be encrypted using the MD5-based # algorithm compatible with the one used by recent releases of FreeBSD. # It supports passwords of unlimited length and longer salt strings. # Set to "no" if you need to copy encrypted passwords to other systems # which don't understand the new algorithm. Default is "no". # # This variable is deprecated. You should use ENCRYPT_METHOD. # #MD5_CRYPT_ENAB no # # If set to MD5 , MD5-based algorithm will be used for encrypting password # If set to SHA256, SHA256-based algorithm will be used for encrypting password # If set to SHA512, SHA512-based algorithm will be used for encrypting password # If set to DES, DES-based algorithm will be used for encrypting password (default) # Overrides the MD5_CRYPT_ENAB option # # Note: It is recommended to use a value consistent with # the PAM modules configuration. |
Quellcode |
|
1 |
password [success=2 default=ignore] pam_unix.so obscure sha512 |
Benutzerinformationen überspringen
User
Registrierungsdatum: 07.11.2012
Derivat: Ubuntu
Architektur: 32-Bit PC
Desktop: GNOME 2.x
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Predat0r« (07.11.2012, 22:18)
Benutzerinformationen überspringen
User
Registrierungsdatum: 07.11.2012
Derivat: Ubuntu
Architektur: 32-Bit PC
Desktop: GNOME 2.x
Sponsorenwerbung: |
Hardware, Computer, PCs, Notebooks & Laptops mit Linux |
Forensoftware: Burning Board®, entwickelt von WoltLab® GmbH
Individuelle Notebooks Laptops - Individuelle Computer PCs - Linux Notebooks & Computers
Lastminute - Ubuntu Linux - Abmahnung - Geek und Nerd Shirt Shop
T-Shirts - sanierung wien