Technical data

Managing User Accounts
7.7 Maintaining User Accounts
When you run AUTHORIZE to remove a user’s UAF record, AUTHORIZE
also removes the user’s connections as a holder of identifiers in the rights
database. However, if a departed user is the only remaining holder of a given
identifier, remove that identifier to avoid future confusion. See the OpenVMS
Guide to System Security.
5. Remove the user’s disk quota entry from the disk quota file, if one existed,
with SYSMAN.
6. Remove associated mail information by entering the MAIL command
REMOVE username. (See the OpenVMS Users Manual for more
information.)
The command procedure template in Example 7–3 deletes an account’s files.
Note
Do not execute this command procedure from a privileged account.
Example 73 Command Procedure Template for Deleting an Accounts Files
$ ! DELTREE.COM - deletes a complete directory tree
$!
$ ! P1 = pathname of root of tree to delete
$!
$ ! All files and directories in the tree, including
$ ! the named root, are deleted.
$!
$ IF "’’DELTREE’" .EQS. "" THEN DELTREE = "@SYS$LIBRARY:DELTREE"
$ ON CONTROL_Y THEN GOTO DONE
$ ON WARNING THEN GOTO DONE
$ DEFAULT = F$LOGICAL("SYS$DISK") + F$DIRECTORY()
$10:
$ IF P1 .NES. "" THEN GOTO 20
$ INQUIRE P1 "Root"
$ GOTO 10
$20:
$ IF F$PARSE(P1) .EQS. "" THEN OPEN FILE ’P1’
$ SET DEFAULT ’P1’
$LOOP:
$ FILESPEC = F$SEARCH("*.DIR;1")
$ IF FILESPEC .EQS. "" THEN GOTO LOOPEND
$ DELTREE [.’F$PARSE(FILESPEC,,,"NAME")’]
$ GOTO LOOP
$LOOPEND:
$ IF F$SEARCH("*.*;*") .NES. "" THEN DELETE *.*;*
$ DIR = (F$DIRECTORY()-"]"-">")-F$PARSE("[-]",,,-
"DIRECTORY")-"]"-">")-"."-"["-"<"
$ SET PROTECTION=WORLD:RWED [-]’DIR’.DIR;1
$ DELETE [-]’DIR’.DIR;1
$DONE:
$ SET DEFAULT ’DEFAULT’
726 Managing User Accounts