From e5212d5ba162681dbb097ad02a43f2f42d5df143 Mon Sep 17 00:00:00 2001 From: 007N Date: Sat, 22 Feb 2014 12:38:10 +0100 Subject: [PATCH 1/2] Create passwd.md Added a few exemples, and basic description of passwd --- common/passwd.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 common/passwd.md diff --git a/common/passwd.md b/common/passwd.md new file mode 100644 index 0000000000..8549cf01bf --- /dev/null +++ b/common/passwd.md @@ -0,0 +1,15 @@ +#passwd + +> passwd is a tool on most Unix and Unix-like operating systems used to change a user's password. + +* Change your password. ( You may need to use **sudo** ) + +`passwd {{options}} {{new password}}` + +* Change the password of the specified user. + +`passwd {{username}} {{new password}}` + +* Make the password of the account blank ( It will set the named account passwordless. ) + +`passwd -d` From 9b108cfd89d1c7476083a8bb9e40646847f9e862 Mon Sep 17 00:00:00 2001 From: 007N Date: Sat, 22 Feb 2014 13:24:27 +0100 Subject: [PATCH 2/2] Update passwd.md Added info about the {{options}} flag, as requested. --- common/passwd.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common/passwd.md b/common/passwd.md index 8549cf01bf..e1cdf0d6fe 100644 --- a/common/passwd.md +++ b/common/passwd.md @@ -2,14 +2,19 @@ > passwd is a tool on most Unix and Unix-like operating systems used to change a user's password. -* Change your password. ( You may need to use **sudo** ) +* Change your password. ( You may need to use **sudo** ). The {{options}} flag can use -a, -d, -e, -h, -S, -i, -k, -l, -m , -q, -r, -u, -v, -x as arguments. `passwd {{options}} {{new password}}` -* Change the password of the specified user. -`passwd {{username}} {{new password}}` +* Gives the current statuts of the user. The status information consists of 7 fields, sutch as the password status, the username, the date, the age etc... + +`passwd -S` * Make the password of the account blank ( It will set the named account passwordless. ) `passwd -d` + +* Change the password of the specified user. + +`passwd {{username}} {{new password}}`