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 | |
| 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>
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | gotrc-examples/revoke-access | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -15,7 +15,7 @@ ECHO = /usr/bin/echo EXAMPLES = README lower-left-ponysay allow-uppercase issue-file \ commands no-empty-user baudrate cerberus hide-username \ - readline + readline revoke-access 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 +} + |
