diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..7e0da61 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# This file defines code owners for the repository +# Require approval from @softservedata for all files +@softservedata diff --git a/find_bash_users.sh b/find_bash_users.sh new file mode 100755 index 0000000..d3d2f5b --- /dev/null +++ b/find_bash_users.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Script to find users with /bin/bash shell from a file named 'password' + +# First, create a sample password file if it doesn't exist (copy from /etc/passwd) +if [ ! -f "password" ]; then + echo "Creating sample password file from /etc/passwd..." + sudo cp /etc/passwd password +fi + +echo "Users with /bin/bash shell:" +grep '/bin/bash$' password | cut -d: -f1