[7375] | 1 | .TH REACTIVATE 8 "25 May 1994" |
---|
[5482] | 2 | .FM mit |
---|
| 3 | .SH NAME |
---|
| 4 | reactivate \- reset the state of an idle workstation |
---|
| 5 | .SH SYNOPSIS |
---|
| 6 | .B /etc/athena/reactivate |
---|
| 7 | [ |
---|
[7375] | 8 | .B \-detach | \-prelogin |
---|
[5482] | 9 | ] |
---|
| 10 | .SH DESCRIPTION |
---|
| 11 | The |
---|
| 12 | .I reactivate |
---|
[15992] | 13 | script initializes an idle workstation and resets the state after a |
---|
| 14 | user has logged out. It is invoked regularly from |
---|
| 15 | .I cron |
---|
| 16 | and exits immediately if anyone is logged in, unless the |
---|
| 17 | .B \-prelogin |
---|
| 18 | option is specified. It also exits if another |
---|
| 19 | .I reactivate |
---|
| 20 | process is found to be running. |
---|
[5482] | 21 | |
---|
[15992] | 22 | When the workstation is idle, |
---|
[5482] | 23 | .I reactivate |
---|
[15992] | 24 | performs several tasks: |
---|
[7375] | 25 | .TP |
---|
[15992] | 26 | + It disables logins for the duration of its execution. |
---|
| 27 | .TP |
---|
[7504] | 28 | * It flushes all filesystem authentication from the workstation. |
---|
[7375] | 29 | .TP |
---|
[7504] | 30 | * It resets the zephyr hostmanager (\fIzhm\fR). |
---|
[7375] | 31 | .TP |
---|
[7504] | 32 | * It destroys any ticket files remaining in /tmp. |
---|
[7375] | 33 | .TP |
---|
[7504] | 34 | + It cleans out /tmp. |
---|
[7375] | 35 | .TP |
---|
[7504] | 36 | * It resets the password and group files to their default |
---|
| 37 | contents. |
---|
[7375] | 38 | .TP |
---|
[7504] | 39 | + It reconfigures some AFS state (including running config_afs). |
---|
[7375] | 40 | .TP |
---|
[7504] | 41 | * It runs cleanup. |
---|
[7375] | 42 | .TP |
---|
[7504] | 43 | + It detaches all attached filesystems. |
---|
[7375] | 44 | .TP |
---|
[7504] | 45 | + It attaches the appropriate system packs. |
---|
[7375] | 46 | .TP |
---|
[7504] | 47 | + It invokes an automatic software update if available. |
---|
| 48 | .TP |
---|
| 49 | * It turns off remote network access to the workstation, |
---|
| 50 | preventing unexpected and possibly hostile remote connections. |
---|
| 51 | After logging in, you can use the |
---|
[5482] | 52 | .I access_on |
---|
| 53 | command to allow remote access. |
---|
[7504] | 54 | .TP |
---|
| 55 | + It executes the local customizations in the file |
---|
| 56 | .I /etc/athena/reactivate.local, |
---|
| 57 | if it exists. |
---|
| 58 | .PP |
---|
[5482] | 59 | .SH OPTIONS |
---|
| 60 | .TP |
---|
| 61 | .B \-detach |
---|
[7375] | 62 | causes |
---|
| 63 | .I reactivate |
---|
| 64 | to detach all attached filesystems. This is not |
---|
[5482] | 65 | done on every invocation to cut down on the network traffic from idle |
---|
[15992] | 66 | workstations. Without this option, |
---|
| 67 | .I reactivate |
---|
| 68 | will still detach all attached filesystems periodically, by keeping a |
---|
| 69 | count of how many times it has been invoked. |
---|
[7375] | 70 | .TP |
---|
| 71 | .B \-prelogin |
---|
| 72 | causes |
---|
| 73 | .I reactivate |
---|
| 74 | to perform only the *'d tasks listed above, and only |
---|
| 75 | if PUBLIC is set to true on the workstation. If PUBLIC is false, |
---|
| 76 | .I reactivate |
---|
| 77 | will simply exit. The purpose of this option is to provide |
---|
| 78 | .I xlogin |
---|
[7376] | 79 | a facility for making sure a PUBLIC workstation is as clean as it |
---|
| 80 | ought to be before a new user logs in. Specifically, this means making |
---|
| 81 | sure that no other users are logged on or have running processes, and |
---|
| 82 | that remote access is turned off. A full invocation of the script |
---|
| 83 | isn't used for this purpose in order to minimize time a user has to |
---|
| 84 | wait to log in after the previous user has logged out. |
---|
[5482] | 85 | |
---|
[7375] | 86 | In the absence of this option, |
---|
| 87 | .I reactivate |
---|
| 88 | performs all listed tasks. |
---|
| 89 | .B \-prelogin |
---|
| 90 | and |
---|
| 91 | .B \-detach |
---|
| 92 | may not be specified simultaneously. |
---|
| 93 | |
---|
[5482] | 94 | .SH FILES |
---|
| 95 | .DT |
---|
| 96 | .nf |
---|
[9803] | 97 | /var/athena/clusterinfo These files contain the information |
---|
| 98 | /var/athena/clusterinfo.bsh received from the nameserver. |
---|
[7375] | 99 | /etc/athena/rc.conf Contains configuration variables |
---|
| 100 | /etc/passwd.local Default contents of password file |
---|
| 101 | /etc/group.local Default contents of group file |
---|
[5482] | 102 | /etc/athena/reactivate.local Optional local additions |
---|
[15992] | 103 | /etc/nologin Disables logins |
---|
| 104 | /var/athena/reactivate.pid Contains reactivate process ID |
---|
| 105 | /var/athena/reactivate.count Contains reactivate invocation count |
---|
[5482] | 106 | .fi |
---|
| 107 | .SH SEE ALSO |
---|
| 108 | dm(8), xlogin(8), save_cluster_info(8), access_on(1) and access_off(1), |
---|
[7375] | 109 | attach(1) and detach(1), fsid(1), hesiod(3), zhm(8) |
---|