Rechercher dans ce blog

jeudi 3 décembre 2015

Impossible de changer le mot de passe ESXI4.0 a 5.5

 

Modification de la stratégie de sécurité de mot de passe

 

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012033

http://linux.die.net/man/8/pam_passwdqc

http://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1017910

 

Commande VI (Editeur linux)

http://free-electrons.com/doc/vi_memento_fr.pdf

http://wiki.linux-france.org/wiki/Utilisation_de_vi

http://www.linux-france.org/prj/support/outils/vi.html

 

Activer SSH sur ESXI, Soit via la console local, Soit via le client vsphere

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2004746

http://www.thomasmaurer.ch/2014/01/enable-ssh-on-vmware-esxi-5-5-via-vsphere-client/

 

Accès SSH avec putty

ICI

: 192.168.10.4

ID

: Root

PW

: Vide

 

Commandes

Cd /etc/pam.d

Vi system-auth

 

Projet A login as: root

Projet A root@192.168.10.4's password: Vide

Projet A You have activated Tech Support Mode.

Projet A The time and date of this activation have been sent to the system logs.

 

Projet A VMware offers supported, powerful system administration tools. 

Projet A Please see www.vmware.com/go/sysadmintools for details.

 

Projet A Tech Support Mode may be disabled by an administrative user.

Projet A Please consult the ESXi Configuration Guide for additional

Projet A important information.

 

Projet A ~ # cd etc/pam.d

/etc/pam.d # ls -l (Permet de lister les fichiers du dossiers avec les attributs)

 

Projet A -r--r--r--    1 root     root                397 Jan 13  2011 dcui

Projet A -r--r--r--    1 root     root                156 Jan 13  2011 login

Projet A -r--r--r--    1 root     root                190 Jan 13  2011 openwsman

Projet A -r--r--r--    1 root     root                301 Jan 13  2011 other

Projet A -rw-r--r--    1 root     root                 48 Jan 13  2011 passwd

Projet A -r--r--r--    1 root     root                198 Jan 13  2011 sfcb

Projet A -r--r--r--    1 root     root                159 Jan 13  2011 sshd

Projet A -rw-r--r-T    1 root     root                561 Dec  3 10:12 system-auth

Projet A -rw-r--r-T    1 root     root                429 Jan 13  2011 system-auth-generic

Projet A -r--r--r--    1 root     root                424 Jan 13  2011 system-auth-local

Projet A -rw-r--r-T    1 root     root                574 Dec  3 10:10 system-authold

Projet A -rw-r--r--    1 root     root                  1 Dec  3 09:59 toto

Projet A -r--r--r--    1 root     root                133 Jan 13  2011 vmware-authd

 

Projet A /etc/pam.d #

 

Si le fichier " system-auth" n'est pas en rw

Taper la commande : chmod +r system-auth

 

/etc/pam.d # vi system-auth (Permet l'edition du fichier system-auth)

 

Projet B #%PAM-1.0

Projet B auth       required     /lib/security/$ISA/pam_access.so

Projet B auth       required     /lib/security/$ISA/pam_per_user.so  /etc/security/login.map

 

Projet B account    required     /lib/security/$ISA/pam_per_user.so  /etc/security/login.map

 

Projet B session    required     /lib/security/$ISA/pam_per_user.so  /etc/security/login.map

 

Projet B REMPLACER

Projet B password   requisite    /lib/security/$ISA/pam_passwdqc.so retry=3 min=8,8,8,8,7

 

Projet B PAR

Projet B password   requisite    /lib/security/$ISA/pam_passwdqc.so retry=3 min=6,6,6,6,6 enforce=none

 

Projet B password   sufficient   /lib/security/$ISA/pam_unix.so use_authtok nullok shadow md5

Projet B password   required     /lib/security/$ISA/pam_deny.so

 

Une fois modifié

Taper :wq! Puis entrer

Le fichier modifié sera sauvé et vous sortirez de VI

 

/etc/pam.d # passwd (Permet de changer le Mot de passe)

 

Projet A Changing password for root

 

Projet A You can now choose the new password or passphrase.

 

Projet A A good password should be a mix of upper and lower case letters,

Projet A digits, and other characters.  You can use a 6 character long

Projet A password.

 

Projet A A passphrase should be of at least 3 words, 6 to 40 characters

Projet A long, and contain enough different characters.

 

Projet A Alternatively, if noone else can see your terminal now, you can

Projet A pick this as your password: "juvt*ongpu-frdhry".

 

Projet A Enter new password: toto

Projet A Weak password: based on personal login information.

Projet A Re-type new password: toto

Projet A passwd: password updated successfully

Projet A /etc/pam.d #

 

ICI Le mot de passe est changé en toto