Gitiles
Code Review
Sign In
git.clicks.codes
/
Minion
/
NixFiles
/
886c40f0d874c901cd49791b320213ce06158d8d
/
.
/
modules
/
security
/
onLock.sh
blob: fb6436199c278873a5cfd0b0b53a85665aa6cc04 [
file
] [
log
] [
blame
]
Skyler Grey
09c1411
2023-02-19 23:41:20 +0000
[
diff
] [
blame
]
1
#!/usr/bin/env bash
2
3
read
-
r uid
<
/
proc
/
self
/
loginuid
||:
4
chown
-
h
"$uid"
"$(tty)"
;
5
exec sudo
-
u
"#$uid"
--
vlock
-
a