diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..aa58bbb --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +*@softservedata diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..378b862 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## Describe your changes + +## Issue ticket number and link + +## Checklist before requesting a review +- [ ] I have performed a self-review of my code +- [ ] If it is a core feature, I have added thorough tests +- [ ] Do we need to implement analytics? +- [ ] Will this be part of a product update? If yes, please write one phrase about this update diff --git a/src/find_bash_users.sh b/src/find_bash_users.sh new file mode 100644 index 0000000..66475c1 --- /dev/null +++ b/src/find_bash_users.sh @@ -0,0 +1,8 @@ +PASSWD_FILE="${1:-/etc/passwd}" + +if [[ ! -r "$PASSWD_FILE" ]]; then + echo "Error: Cannot read file '$PASSWD_FILE'" >&2 + exit 1 +fi + +awk -F: '$7 == "/bin/bash" { print $1 }' "$PASSWD_FILE" \ No newline at end of file