s Hacking VAX Special David

Found at: 0x1bi.net:70/textfiles/file?hacking/VMS/vax-5.txt

Subject:   What's Hacking VAX Special - 5
From:      David Lightman (Level 30) [A dude who wanted access]
To:        ALL
Sent:      3/1/90 at 2:56 pm

        TYPE             -  Shows the contents of a file by sending it to
                            the terminal.
                            EX: TYPE DAVID.TXT;3

           The  SET command is one of the most widely used and  versatile
        commands on the VMS 5 series DCL.


           I suppose the most frequent use of SET involved the PROTECTION
        option.  These protections, known as SOGW or UIC protections, can
        be  put  on any file or directory that you have WRITE  &  EXECUTE
        privileges on.  Setting the protection involves allowing  differ-
        ent users on the VAX to read, write, execute, or delete your file
        or  directory.   The FILE /PROTECTION option of SET  is  used  to
        accomplish this.  An example is:

        SET FILE/PROTECTION=OWNER:E david.exe;4

        If  you  typed  this  command in the DCL  for  a  program  called
        DAVID.EXE;4  (4 is the version number), then the owner (or  crea-
        tor)  of  the  file can do nothing to the file  but  execute  it.
        However, in another example:


        you  are  going  to be able to "R"ead,  "W"rite,  "E"xecute,  and
        "D"elete  the  program.  The same applies to a  directory.   Just
        substitute  the  directory  name for the  filename  above.   When
        creating a directory, the SET  is set so that you may not  delete
        it.   As  discussed  previously, you will have to  issue  a  "SET
        PROTECTION  OWNER:D  dirname.dir;1" and  "DEL  dirname.dir;1"  to
        delete the directory.

           Other than the owner, UIC file protection can be placed on any
        of the following:

        WORLD - Any user on the system.
        GROUP - Any user in your group.
        OWNER - Only your account or matching UIC.
        SYSTEM - Anyone that has SYSPRV privileges or the octal UIC


           This  is  VERY important to all of us who call  into  the  VAX
        system.  If you have a VT100 (not just ANSI), you can use:


           Additional terminal settings are possible, for example:

        SET TERMINAL/WIDTH=80 - Sets width to 80 columns
        SET TERMINAL/ADVANCED_VIDEO = Sets 124 X 24 lines
        SET TERMINAL/ANSI_CRT = ANSI escape sequences
        SET TERMINAL/AUTOBAUD = Possibly gets higher baud rate
        SET TERMINAL/BROADCAST = Enable messages from SEND, MAIL & PHONE
        SET TERMINAL/DEVICE_TYPE=VT220 - Sets terminal type to VT220
        SET TERMINAL/ECHO = Enables echoing from DCL command line
        SET TERMINAL/FULLDUP = Enables full duplex
        SET TERMINAL/HANGUP = Causes account to log off if no carrier
        SET TERMINAL/INQUIRE - Shows device_type of terminal
        SET TERMINAL/PAGE=43 - Sets display length to 43 lines
        SET TERMINAL/TYPE_AHEAD = Sets type ahead function on
        SET TERMINAL/UNKNOWN - Used for ASCII device types
        SET TERMINAL/WRAP = Used to set wrap around feature

        All  of  the above denoted with a "=" rather than a  "-"  can  be
        changed  to  the opposite setting by placing a "NO"  directly  in
        front of the qualifiers.  EX: SET TERMINAL/NOECHO