Function
Unsets a group trap or an individual user trap governing specified modes to access to an entrant belonging to the proper user.
Format
TRAPSTOP entrant description, user name, access mode, access mode ...
There are five possible access modes, for an individual user:
| EXECUTE | The contents of the file may be loaded into core and run | ||
| READ | The file contents may be read | ||
| APPEND | Information may be written to the end of the file | ||
| WRITE | The contents of the file may be overwritten | ||
| ERASE | The file may be erased |
Forbidden contexts
NO USER
Execution
GEORGE searches the directory entry of the named entrant for the appropriate user trap and removes those indicators specified in the mode parameters (other than GROUP). If, as a result of this, no further access is permitted to the named user, the trap is deleted.
If GROUP is given as one of the mode parameters, the appropriate GROUP trap is treated in the same way.
Examples
| TRAPSTOP MYFILE,GROUP,WRITE | The proper user's GROUP (if there is one) will be denied WRITE access to MYFILE |
| TRAPSTOP XF1(3),:JOHN,APPEND | :JOHN will be denied APPEND access to the named magnetic tape |
| TRAPSTOP :PUSER.A1(/AB),:BILL,READ | :BILL will be denied READ access to
:PUSER.A1(/AB) :PUSER is a pseudo user whose directory belongs to the proper user |
Error Messages
ENTRANT DESCRIPTION PARAMETER IS MISSING
TRAPMODE PARAMETER MISSING
YOU ARE NOT OWNER OF THIS ENTRANT
THIS USER IS A PSEUDO USER AND MAY NOT BE GIVEN TRAPS
A DUPLICATE TRAPSTYLE HAS BEEN GIVEN
THE USER REFERRED TO HAS NO SUCH TRAP(S) TO THIS FILE
UNRECOGNISED TRAPSTYLE PARAMETER
z IS A XENOTAPE AND MAY NOT BE REFERRED TO BY THIS COMMAND
z IS NOT AN ACCESS MODE