		ACCOUNT FILE MAINTANENCE
 
 
1.  READING THE TOTAL LOGON TIME, THE # OF LOGONS, THE PRIVLEGE MASK, 
    AND THE TASK
 
	To read the status of the account file at any time , type  RUN  $ACCLOG
ACCLOG is a task which will provide a printed record of virtually every item in 
the account file with the exception of the password, the system device, and the 
date and time of the last logon.  In addition it indicates which accounts are 
currently in useby flagging an active account with the terminal number logged  
onto the account.  This entry is of the form TTn.
 
 
2. RESETING THE TOTAL LOGON TIME(ALL ENTRIES)
	This entry is zeroed or reset using ACCSET
 
			INS [1,53]ACCSET
			SET /UIC=[1,54]
			RSE TIME
			REM RSE
 
3. RESETTING THE ACCOUNT BUSY FLAG(ALL ENTRIES)
 
	In rare cases(system crash, etc.) it is possible for the system to
stop without a user logging off.  In this event the flag entry in the account
file of the form  TTn is not cleared.  This means that a non-privleged user
may not log on until this flag in his section of the account
file is cleared.  This is accomplished using
 
			INS [1,53]ACCSET
			SET /UIC=[1,54]
			RSET FLAGS
 			REM RSE
 
All non-privleged users should be off the system when this is done since
all terminal flags in the account file will be zeroed together.  This will
not adversely effect a privleged user who is logged on.  A non-prvleged user
would not get screwed up, but upon logging off, the accumulated terminal time
for his session would not get added into his account.
 
3B. RESETTING THE ACCOUNT BUSY FLAG FOR JUST ONE USER
	Install ACCSET and set the UIC to [1,54], then enter the command string
 
		RSE USER=NAME:PASSWORD/FLAG
 
where NAME is the user's last name(in the account) and PASSWORD is the user's
password.  Only the user's account busy flag will be reset.
 
4.  RESETTING THE TOTAL NUMBER OF LOGONS ENTRIES
	This is accomplished using  RSE.
 
			INS [1,53]ACCSET
			SET /UIC=[1,54]
			RSE LOGONS
			REM RSE
 
5.  RESETTING ACCOUNT FLAGS, # OF LOGONS, AND LOGON TIME AT ONCE
	For ease in monthly reseting of the account file, the account
flags, the # of logons entries, ad the total terminal connect time
entries can be all zeroed out with one command.
 
			INS [1,53]ACCSET
			SET /UIC=[1,54]
			RSE ALL
			REM RSE
 
6.  SETTING AND CLEARING THE PRIVILEGE MASK WORD
 
	At present the first three BITS and BIT 15 of the PRIVLEGE MASK word
in U.CW3 of the terminal UCB are defined.
 
	BIT	0	User may not use the RUN command
	BIT	1	User may only run tasks owned by him or by [377,377]
	BIT	2	A task(6 letter name) in the account file will be run
			as HELLO exits.
	BIT	4	When set the user's terminal is logged on SLAVE.
	BIT	6	When the user logs off BYE sends an MCR command to ...UPD
			to update the user's account file to reflect the number of
			files and disk blocks in use on that account.
	BIT	15	The user is logged on as privleged even if his UIC is 
			nonprivileged
 
The PRIVLEGE MASK word is set using
 
			RSE USER=NAME:PASSWORD/PRIV=NNNNNN
 
	where NNNNNN is a 6 character octal number.
 
cleared using, 
 
			RSE USER=NAME:PASSWORD/PRIV=
 
7. INSERTING A TASK NAME INTO THE ACCOUNT FILE
 
	Inserting a task name into the account file is done using
 
			RSE USER=NAME:PASSWORD/TASK=XXXXXX
 
where XXXXXX is a 6 character ASCII task name.
 
8. SETTING THE NUMBER OF BLOCKS THE USER IS ALLOWED TO USE
 
	The account file has an entry for the number of blocks the user is  
allowed to use.  When the user logs on, HELLO checks to see if this number has 
been exceeded.  If it has, HELLO prints a warning message at the terminal.
To set the number of blocks the user is allowed to use the syntax is
 
			RSE USER=NAME:PASSWORD/BLKS=NNNN
 
where NNNN is a decimal number.
 
 
 
 
		THE ACCOUNT FILE UTILITY -- ACCSET
 
	The ACCOUNT FILE utility, ACCSET, installed as ...RSE (for RESET)
supports the following syntax in its command line.
 
		RSE COMMAND[=qualifier]/SW1[=XX]/SW2[=ZZ].....
 
The allowed commands are
 
				FLAGS
				TIME
				LOGINS
				ALL
				USER
 
Of these commands only the last command, USER, requires a qualifier.   It's
syntax is
 
			USER=name:password
 
where the ":" is required syntax to seperate the user's name from his password.
Also the USER command requires one or more switches.  Three switches exist
 
			/TASK=XXXXXX
			/PRIV=NNNNNN
			/FLAG
			/BLKS=NNNN
 
In all cases the account file entry is set by following the "=" with either
a task name or octal or decimal digit, or reset by not following the "=" 
with anything.  The switch /FLAG need not be followed by anything.  If present 
the user's account busy flag is cleared.
 
 
UPDATING THE USERS ACCOUNT WITH THE NUMBER OF FILES AND BLOCKS IN USE
 
	If BIT 6 in the terminal PRIVLEGE MASK (U.CW3) is set and the terminal
is not privleged, BYE sends a message to UPD to update the users account 
with the total number of files and blocks the user had on his system device
when he logged off.  The format of the message is
 
			UPD DEV:[UIC]password/UP
 
For this procedure to work the task ACCDSK (Account for disk block usage) must
be installed as ...UPD.  UPD may be run at any time by any user to find out the 
of files and blocks on use by any account.  However, if the desire is to update
the account file [0,0]RSX11.SYS, then UPD must be run from a privleged terminal
and both the password and the /UP switch must be present.  The /UP switch is to
safegard UPD from accidental use by a privleged.  The non privleged account
account syntax requires that the password and the /UP switch be omitted.
However,  a privleged account might accidently type a file specifier after the
[UIC].  The/UP switch is to insure that aything following the [UIC] is intended
and justifies reading through the account file to search for a match.
