aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples/revoke-access
blob: 5ac9b27b80f143fa6786de96b4ed9b7d33b800b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}