|
@@ -1229,7 +1229,7 @@ who -b |
|
|
|
|
|
|
|
|
###### Detect a user sudo-su'd into the current shell |
|
|
###### Detect a user sudo-su'd into the current shell |
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
```bash |
|
|
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)" |
|
|
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)" |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|