home *** CD-ROM | disk | FTP | other *** search
/ Hacker Chronicles 1 / HACKER1.ISO / phrk2 / phrack16.3 < prev    next >
Text File  |  1992-09-26  |  12KB  |  323 lines

  1.  
  2.  
  3.          ===== Phrack Magazine presents Phrack 16 =====
  4.  
  5.                     ===== File 3 of 12 =====
  6.  
  7.  
  8.  
  9.  
  10.            ==========================================
  11.           ====       Cosmos Kid Presents...       ====
  12.           ====    A Hacker's Guide To: PRIMOS     ====
  13.           ====              Part I                ====
  14.           ====     (c) 1987 by Cosmos Kid         ====
  15.            ==========================================
  16.  
  17. Author's Note:
  18. --------------
  19. This file is the first of two files dealing with PRIMOS and its
  20. operations.  The next file will be in circulation soon so be sure
  21. to check it out at any good BBS.
  22.  
  23.  
  24. Preface:
  25. --------
  26. This file is written in a form to teach beginners as well as
  27. experienced Primos users about the system. It is written
  28. primarily for beginners however. PRIMOS, contrary to popular
  29. belief can be a very powerful system if used correctly. I have
  30. outlined some VERY BASIC commands and their use in this file
  31. along with some extra commands, not so BASIC.
  32.  
  33.  
  34. Logging On To A PRIMOS:
  35. -----------------------
  36. A PRIMOS system is best recognized by its unusual prompts. These
  37. are: 'OK', and 'ER!'.  Once connected, these are not the prompts
  38. you get.  The System should identify itself with a login such as:
  39.  
  40. Primenet V2.3
  41. -or-
  42. Primecom Network
  43.  
  44. The system then expects some input from you, preferably: LOGIN.
  45. You will then be asked to enter your user identification and
  46. password as a security measure. The login onto a PRIMOS is as
  47. follows:
  48.  
  49. CONNECT
  50. Primenet V 2.3 (system)
  51. LOGIN<CR>      (you)
  52. User id?       (system)
  53. AA1234         (you)
  54. Password?      (system)
  55. KILLME         (you)
  56. OK,            (system)
  57.  
  58.  
  59. Preceding the OK, will be the systems opening message.  Note that
  60. if you fail to type login once connected, most other commands are
  61. ignored and the system responds with:
  62.  
  63. Please Login
  64. ER!
  65.  
  66.  
  67. Logging Off Of A PRIMOS:
  68. ------------------------
  69. If at any time you get bored with primos, just type 'LOGOFF' to
  70. leave the system.  Some systems have a TIMEOUT feature
  71. implemented meaning that if you fail to type anything for the
  72. specified amount of time the system will automatically log you
  73. out, telling you something like:
  74.  
  75. Maximum Inactive Time Limit Exceeded
  76.  
  77.  
  78. System Prompts:
  79. ---------------
  80. As stated previously, the prompts 'ER!' and 'OK,' are used on
  81. primos. The 'OK,' denotes that last command was executed properly
  82. and it is now waiting for your next command. The 'ER!' prompt
  83. denotes that you made an error in typing your last command. This
  84. prompt is usually preceded by an error message.
  85.  
  86.  
  87. Special Characters:
  88. -------------------
  89. Some terminals have certain characteristics that are built in to
  90. the terminal.
  91.  
  92. CONTROL-H: Deletes the last character typed.
  93.  
  94.  
  95. Other Special Characters:
  96. -------------------------
  97. RETURN: The return key signals PRIMOS that you have completed
  98.           typing a command and that you are ready for PRIMOS to
  99.           process the command.
  100.  
  101. BREAK/CONTROL-P: Stops whatever is currently being processed in
  102.                     memory and will return PRIMOS to your
  103.                     control. To restart a process, type:
  104.                          START (abbreviated with S).
  105.  
  106. CONTROL-S: Stops the scrolling of the output on your terminal for
  107.                viewing.
  108.  
  109. CONTROL-Q: Resumes the output scrolling on your terminal for
  110.                inspection.
  111.  
  112. SEMICOLON ';': The logical end of line character. The semicolon
  113.                is used to enter more than one command on one
  114.                line.
  115.  
  116. Getting Help:
  117. -------------
  118. You can get online information about the available PRIMOS
  119. commands by using the 'HELP' command.  The HELP system is keyword
  120. driven.  That is, all information is stored under keywords that
  121. indicate the content of the help files.  This is similar to VAX. 
  122. Entering the single command 'HELP' will enter the HELP sub-system
  123. and will display an informative page of text.  The next page
  124. displayed will provide you with a list of topics and their
  125. keywords.  These topics include such items as PRIME, RAP, MAIL,
  126. and DOC.  If you entered the MAIL keyword, you would be given
  127. information concerning the mail sub-system available to users on
  128. P simply enter PRIME to obtain information on all PRIMOS
  129. commands.  You could then enter COPY to obtain information on
  130. that specific topic.
  131.  
  132.  
  133. Files And Directories:
  134. ----------------------
  135. The name of a file or sub-directory may have up to 32 characters. 
  136. The filename may contain any of the following characters, with
  137. the only restriction being that the first character of the
  138. filename may not be a digit.  Please note that BLANK spaces are
  139. NOT allowed ANYWHERE:
  140.  
  141. A-Z .....alphabet
  142. 0-9 .....numeric digits
  143. &   .....ampersand
  144. #   .....pound sign
  145. $   .....dollar sign
  146. -   .....dash/minus sign
  147. *   .....asterisk/star
  148. .   .....period/dot
  149. /   .....slash/divide sign
  150.  
  151.  
  152. Naming Conventions:
  153. -------------------
  154. There are very few restrictions on the name that you may give a
  155. file.  However, you should note that many of the compilers
  156. (language processors) and commands on the PRIME will make certain
  157. assumptions if you follow certain guidelines. File name suffixes
  158. help to identify the file contents with regard to the language
  159. the source code was written in and the contents of the file.  For
  160. instance, if you wrote a PL/1 program and named the file
  161. containing the source code 'PROG1.PL1' (SEGmented loader) would
  162. take the binary file, link all the binary libraries that you
  163. specify and produce a file named 'PROG1.SEG', which would contain
  164. the binary code necessary to execute the program.  Some common
  165. filename suffixes are:  F77, PAS, COBOL, PL1G, BASIC, FTN, CC,
  166. SPIT (source files) These all denote separate languages and get
  167. into more advanced programing on PRIMOS. (e.g. FTN=Fortran).
  168.  
  169. BIN=the binary code produced by the compiler
  170. LIST=the program listing produced by the compiler
  171. SEG=the linked binary code produced by SEG
  172.  
  173. Some files which do not use standard suffixes may instead use the
  174. filename prefixes to identify the contents of the file.  Some
  175. common filename prefixes are:
  176.  
  177. B  Binary code produced by the compiler
  178. L  source program Listing
  179. C  Command files
  180. $  Temporary work files (e.g. T$0000)
  181. #  Seg files
  182.  
  183.  
  184. Commands For File Handling:
  185. ----------------------------
  186. PRIMOS has several commands to control and access files and file
  187. contents. These commands can be used to list the contents of
  188. files and directories, and to copy, add, delete, edit, and print
  189. the contents of files.  The capitalized letters of each are
  190. deleted.  A LIST must be enclosed in parenthesis.
  191.  
  192. Close arg        ....Closes the file specified by 'arg'. 'Arg'
  193.                     could also be a list of PRIMOS file unit
  194.                     numbers, or the word 'ALL' which closes all
  195.                     open files and units.
  196.  
  197. LIMITS           ....Displays information about the login
  198.                     account, including information about
  199.                     resources allocated and used, grantor, and
  200.                     expiration date.
  201.  
  202. Edit Access      ....Edits the Access rights for the named
  203.                     directories and files.
  204.  
  205. CName arg1 arg2  ....Changes the Name of 'arg1' to 'arg2'. The
  206.                     arguments can be files or directories.
  207.  
  208. LD               ....The List Directory command has several
  209.                     arguments that allow for controlled listing
  210.                     format and selection of entries.
  211.  
  212. Attach arg       ....allows you to Attach to the directory 'arg'
  213.                     with the access rights specified in the
  214.                     directory Access Control List.
  215.  
  216. DOWN <arg>       ....allows you to go 'DOWN into' a sub-ufd
  217.                     (directory). You can specify which one of
  218.                     several sub-ufds to descend into with the
  219.                     optional 'arg'.
  220.  
  221. UP <arg>         ....allows you to go 'UP into' a higher ufd
  222.                     (directory). You can spσc{fy which one of
  223.                     several to climb into with the optional
  224.                     'arg'.
  225.  
  226. WHERE            ....Displays what the current directory attach
  227.                     point is and your access rights.
  228.  
  229. CREATE arg       ....CREATES a new sub-directory as specified by
  230.                     'arg'.
  231. COPY arg1 arg2   ....COPIES the file or directory specified by
  232.                     'arg1' into a file by the same name specified
  233.                     by 'arg2'. Both 'arg1' and 'arg2' can be
  234.                     filename he SPOOL command, whose format is:
  235.  
  236. SPOOL filename -AT destination
  237.                     where filename is the name of the file you
  238.                     want printed, and destination is the name of
  239.                     the printer where you want the file printed. 
  240.                     For example if you want the file 'HACK.FTN'
  241.                     printed at the destination 'LIB' type:
  242.  
  243. SPOOL HACK.FTN -AT LIB
  244.  
  245. PRIMOS then gives you some information telling you that the file
  246. named was SPOOLed and the length of the file in PRIMOS records.
  247. To see the entries in the SPOOL queue, type:
  248.  
  249. SPOOL -LIST
  250.  
  251. PRIMOS then lists out all the files waiting to be printed on the
  252. printers on your login system. Also included in this information
  253. will be the filename of the files waiting to print, the login
  254. account name of the user who SPOOLed the file, the time that the
  255. file was SPOOLed, the size of the file in PRIMOS records, and the
  256. printer name where the file is to print.
  257.  
  258. Changing The Password Of An Account:
  259. ------------------------------------
  260. If you wish to change the password to your newly acquired account
  261. you must use the 'CPW' command (Change PassWord). To do this
  262. enter the current password on the command line followed by
  263. RETURN.  PRIMOS will then prompt you for your desired NEW
  264. password and then ask you to confirm your NEW password.  To
  265. change your password of 'JOE' to 'SCHMOE' then type:
  266.  
  267. OK,             (system)
  268. CPW JOE         (you)
  269. New Password?   (system)
  270.  
  271. You can save a copy of your terminal session by using the COMO
  272. (COMmand Output) command.  When you type:
  273.  
  274. COMO filename
  275.  
  276. Everything which is typed or displayed on your terminal is saved
  277. (recorded) into the file name on the command line (filename).  If
  278. a file by the same name exists, then that file will be REPLACED
  279. with NO WARNING GIVEN!  When you have finished doing whatever it
  280. was you wanted a hardcopy of, you type:
  281.  
  282. COMO -End
  283.  
  284. which will stop recording your session and will close the COMO
  285. file. You can now print the COMO file using the SPOOL command as
  286. stated earlier.
  287.  
  288.  
  289. Conclusion:
  290. -----------
  291. This concludes this first file on PRIMOS. Please remember this
  292. file is written primarily for beginners, and some of the text may
  293. have seemed BORING! However, this file was written in a verbose
  294. fashion to FULLY INTRODUCE PRIMOS to beginners.  Part II will
  295. deal with more the several languages on PRIMOS and some other
  296. commands.
  297.  
  298.  
  299. Author's Endnote:
  300. -----------------
  301. I would like to thank the following people for the help in
  302. writing this file:
  303.  
  304. AMADEUS (an oldie who is LONG GONE!)
  305. The University Of Kentucky
  306. State University Of New York (SUNY) Primenet
  307.  
  308. And countless others.....
  309.  
  310. Questions, threats, or suggestions to direct towards me, I can be
  311. found on any of the following:
  312.  
  313. The Freeworld ][.........301-668-7657
  314. Digital Logic............305-395-6906
  315. The Executive Inn........915-581-5146
  316. OSUNY BBS................914-725-4060
  317.  
  318.  
  319.         -=*< Cosmos Kid >*=-
  320.  
  321. 
  322. Downloaded From P-80 International Information Systems 304-744-2253 12yrs+
  323.