diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-04-07 04:25:30 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-04-07 04:25:30 +0200 |
| commit | 1e6aae4bb28c1934879d5d362db636a344c7fd6b (patch) | |
| tree | a5fc4bb75e962065e7c7e6d40c643a9047b749b0 /gotrc-examples/revoke-access | |
| parent | add readline extension (diff) | |
| download | gates-of-tartaros-1e6aae4bb28c1934879d5d362db636a344c7fd6b.tar.gz gates-of-tartaros-1e6aae4bb28c1934879d5d362db636a344c7fd6b.tar.bz2 gates-of-tartaros-1e6aae4bb28c1934879d5d362db636a344c7fd6b.tar.xz | |
add module that revokes the user's access after she logs out
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples/revoke-access')
| -rw-r--r-- | gotrc-examples/revoke-access | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gotrc-examples/revoke-access b/gotrc-examples/revoke-access new file mode 100644 index 0000000..5ac9b27 --- /dev/null +++ b/gotrc-examples/revoke-access @@ -0,0 +1,16 @@ +# -*- shell-script -*- + +# This module removes access to the TTY after +# the user logs out. + + +display_function_revoke_access=$display_function +display_function=_display_revoke_access + +_display_revoke_access () +{ + chmod 640 "$(tty)" + chown 0:0 "$(tty)" + $display_function_revoke_access +} + |
