Technical data

Managing User Accounts
7.7 Maintaining User Accounts
How to Perform This Task
1. Create a systemwide logout command procedure that executes whenever a
user logs out. (The file is usually named SYS$MANAGER:SYLOGOUT.COM.)
2. To ensure that this command procedure executes, include a command in
SYS$MANAGER:SYLOGIN.COM that equates the most commonly used
abbreviation of the LOGOUT command (often LO) to the execution of the
logout command procedure.
Example
$ LO*GOUT:==@SYS$MANAGER:SYLOGOUT
The last line of the logout command procedure then uses an alternate form of
the LOGOUT command, such as a LOGOUTNOW command. (You can create
any command name you like beginning with LO.) You cannot use the same
abbreviation as used for the symbol (in this case LO) because it will start the
procedure again. As an alternative, you could add the following command, just
above the last line:
$ DELETE/SYMBOL/GLOBAL LOGOUT
Note that this technique works in some situations but it is not foolproof; there are
many alternative ways to terminate a process.
7.7.2 Modifying a User Account
To change a user account’s quotas, default directory, password, authorized
privileges, or any other characteristics assigned by AUTHORIZE, use the
MODIFY command. You can use the MODIFY command to change any field in
an existing user account. However, a user must log out and log in again for the
modifications to take effect.
Examples
1. When a user forgets a password and cannot log in, use the AUTHORIZE
command MODIFY/GENERATE_PASSWORD to reset a user password. For
example, the following command generates a new password for user WELCH:
UAF> MODIFY WELCH/GENERATE_PASSWORD
By default, after logging in, user WELCH must change the password.
2. Any changes that you make to a users record will take effect after the user
next logs in. For example, suppose that user JONES currently has an open
file quota (FILLM) of 20. To increase user Jones’ open file limit to 40, you
would use the following command in AUTHORIZE:
UAF> MODIFY JONES/FILLM=40
Any process of user JONES that is logged in at the time that you modify the
user authorization file continues to have a file limit of 20. In order to have
an open file limit of 40, user JONES must log out and then log in again, after
you have made the modification to the user authorization file (UAF) using
AUTHORIZE.
Managing User Accounts 723