summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-10-01 19:43:56 -0600
committermo khan <mo.khan@gmail.com>2019-10-01 19:43:56 -0600
commit44435b60f1196bb59d34bb4b52d57450ca6d8e1e (patch)
treecc9407ac746ae7527659cbcfd44ec3cb98ddda62 /README.md
parente56cbefabfbdeb6d12d38adcc998b6b540a3b874 (diff)
find duplicate uids
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4889909..8b9252d 100644
--- a/README.md
+++ b/README.md
@@ -1147,5 +1147,12 @@ Rootly Powers and Processes
```
c. Find any sets of entries that have duplicate UIDs.
+
+ ```bash
+ #!/bin/bash
+
+ cat /etc/passwd | grep -v -E '^#' | awk -F: '{ print $3 }' | sort -n | uniq -d
+ ```
+
d. Find entries that have duplicate login names.
e. Find entries that have no expiration date (needs /etc/shadow).