Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file defines code owners for the repository
# Require approval from @softservedata for all files
@softservedata
11 changes: 11 additions & 0 deletions find_bash_users.sh
Original file line number Diff line number Diff line change
@@ -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