diff options
| -rw-r--r-- | README.md | 7 | ||||
| -rwxr-xr-x | bin/no-password | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -1139,6 +1139,13 @@ Rootly Powers and Processes ``` b. Find entries that have that have no password (needs /etc/shadow). + + ```bash + #!/bin/bash + + grep -E '^\w+::.*' /etc/passwd + ``` + c. Find any sets of entries that have duplicate UIDs. d. Find entries that have duplicate login names. e. Find entries that have no expiration date (needs /etc/shadow). diff --git a/bin/no-password b/bin/no-password new file mode 100755 index 0000000..7ed2797 --- /dev/null +++ b/bin/no-password @@ -0,0 +1,3 @@ +#!/bin/bash + +grep -E '^\w+::.*' /etc/passwd |
