cours/unix commande passwd.md
oscar.plaisant@icloud.com a2ee0fa5ca from github to this gitea
2023-10-23 23:09:51 +02:00

32 lines
816 B
Markdown

up::[[unix commandes d'identification]]
title::"comamdne pour modifier des mots de passe"
#informatique/unix
----
Sans argument : change le mot de passe de l'utilisateur actuel
```bash
$ passwd
changing password for "pierre"
pierre's Old pasword: xxxxx
pierre's New password: xxxxxxx
Enter the new password again : xxxxxxx
```
> [!note]
> modifie le fichier [[unix fichier etc-shadow|/etc/shadow]]
> [!definition] Usage
> ```
> passwd [-i infosystem] -l location]] [-u authname] [name]
> infosystem:
> file
> NIS
> OpenDirectory
> PAM
> location (for infosystem):
> file location is path to file (default is /etc/master.passwd)
> NIS location is NIS domain name
> OpenDirectory location is directory node name
> PAM location is not used
> ```