a
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Simplified pattern
|
||||
pattern="Defaults use_pty"
|
||||
|
||||
# Check if the pattern exists in /etc/sudoers
|
||||
if grep -E "^\s*Defaults\s+use_pty" /etc/sudoers >/dev/null; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user