lbonanomi
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
README.md
|
|
@@ -1229,7 +1229,7 @@ who -b |
|
|
|
|
|
|
|
###### Detect a user sudo-su'd into the current shell |
|
|
|
|
|
|
|
``` |
|
|
|
```bash |
|
|
|
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)" |
|
|
|
``` |
|
|
|
|
|
|
|