commit | 09c1411c96bb5adabdcf37c1ee4ef8007ef9237c | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Sun Feb 19 23:41:20 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Feb 26 13:09:30 2023 +0000 |
tree | d78f601c4306196115bba85099eb1d0b4bd0444c | |
parent | 2c18911ac0b34644254d49275efe5630c3fb7d12 [diff] [blame] |
Replace physlock with vlock
diff --git a/modules/security/onLock.sh b/modules/security/onLock.sh new file mode 100755 index 0000000..fb64361 --- /dev/null +++ b/modules/security/onLock.sh
@@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +read -r uid < /proc/self/loginuid ||: +chown -h "$uid" "$(tty)"; +exec sudo -u "#$uid" -- vlock -a