home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Aktief 1995 #3 / CDA3.iso / faqs / linux2.zip / LINUX2.TXT
Text File  |  1995-04-07  |  59KB  |  1,326 lines

  1.  
  2. Archive-Name: linux/faq/part2
  3. Last-Modified: 30 Mar 1995
  4.  
  5. -----BEGIN PGP SIGNED MESSAGE-----
  6.  
  7. (Continued from part 1, where you'll find the introduction and
  8.  table of contents.)
  9. ===============================================================================
  10.  
  11. Section 6.  Solutions to common miscellaneous problems
  12.  
  13.  Q6.1        Setuid scripts don't seem to work.
  14.  Q6.2        Free memory as reported by free keeps shrinking.
  15.  Q6.3        When I add more memory it slows to a crawl.
  16.  Q6.4        Some programs (e.g. xdm) won't let me log in.
  17.  Q6.5        Some programs let me log in with no password.
  18.  Q6.6        My machine runs very slowly when I run GCC / X / ...
  19.  Q6.7        I can only log in as root.
  20.  Q6.8        My screen is all full of weird characters instead of letters.
  21.  Q6.9        I have screwed up my system and can't log in to fix it.
  22.  Q6.10       Emacs just dumps core.
  23.  Q6.11       I've discovered a huge security hole in rm !
  24.  Q6.12       lpr and/or lpd aren't working.
  25.  Q6.13       Timestamps on files on msdos partitions are set incorrectly.
  26.  Q6.14       How do I get LILO to boot the vmlinux file ?
  27.  
  28. - -----------------------------------------------------------------------------
  29.  
  30. Question 6.1.  Setuid scripts don't seem to work.
  31.  
  32. That's right.  This feature has been deliberately disabled in the Linux
  33. kernel because setuid scripts are almost always a security hole.  If you
  34. want to know why read the FAQ for comp.unix.questions.
  35.  
  36. - -----------------------------------------------------------------------------
  37.  
  38. Question 6.2.  Free memory as reported by free keeps shrinking.
  39.  
  40. The `free' figure printed by free doesn't include memory used as a disk
  41. buffer cache - shown in the `buffers' column.  If you want to know how
  42. much memory is really free add the `buffers' amount to `free'.
  43.  
  44. The disk buffer cache tends to grow soon after starting Linux up, as you
  45. load more programs and use more files and the contents get cached.  It
  46. will stabilise after a while.
  47.  
  48. - -----------------------------------------------------------------------------
  49.  
  50. Question 6.3.  When I add more memory it slows to a crawl.
  51.  
  52. This is quite a common symptom of a failure to cache the additional
  53. memory.  The exact problem depends on your motherboard.
  54.  
  55. Sometimes you have to enable caching of certain regions in your BIOS
  56. setup.  Look in the CMOS setup and see if there is an option to cache the
  57. new memory area which is currently switched off.  This is apparently most
  58. common on a 486.
  59.  
  60. Sometimes the RAMs have to be in certain sockets to be cached.
  61.  
  62. Sometimes you have to set jumpers to enable the caching.
  63.  
  64. Some motherboards don't cache all the RAM if you have more RAM per amount
  65. of cache than they expect.  Usually a full 256K cache will solve this
  66. problem.
  67.  
  68. If in doubt, check your motherboard manual.  If you still can't fix it
  69. because the documentation is inadequate you might like to post a message
  70. giving *all* the details - make, model number, date code, etc. so that
  71. other Linux users can avoid it.
  72.  
  73. - -----------------------------------------------------------------------------
  74.  
  75. Question 6.4.  Some programs (e.g. xdm) won't let me log in.
  76.  
  77. You are probably using non-shadow-password programs but are using shadow
  78. passwords.
  79.  
  80. If so, you have to get or compile a shadow password version of the
  81. program(s) in question.  The shadow password suite can be found in
  82. (amongst other places):
  83.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  84. This is the source code; you will probably find the binaries in
  85. .../linux/binaries/usr.bin.
  86.  
  87. - -----------------------------------------------------------------------------
  88.  
  89. Question 6.5.  Some programs let me log in with no password.
  90.  
  91. You probably have the same problem as in Q6.4 `Some programs (e.g. xdm)
  92. won't let me log in.', with an added wrinkle:
  93.  
  94. If you are using shadow passords you should put an asterisk in the
  95. password field of /etc/passwd for each account, so that if a program
  96. doesn't know about the shadow passwords it won't think it's a passwordless
  97. account and let anyone in.
  98.  
  99. - -----------------------------------------------------------------------------
  100.  
  101. Question 6.6.  My machine runs very slowly when I run GCC / X / ...
  102.  
  103. You may not have any swap enabled.  You need to enable swapping to allow
  104. Linux to page out bits of data programs aren't using at the moment to disk
  105. to make more room for other programs and data.  If you don't Linux has to
  106. keep data in memory and throw away in-memory copies of programs (which are
  107. paged straight from the filesystem) and so less and less program is in
  108. memory and everything runs very slowly.
  109.  
  110. See the Installation HOWTO and the Installation and Getting Started Guide
  111. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  112. of how to set up a swap partition or swapfile; see also Q4.5 `My swap area
  113. isn't working.'.
  114.  
  115. Alternatively you may have too little real memory.  If you have less RAM
  116. than all the programs you're running at once use Linux will use your hard
  117. disk instead and thrash horribly.  The solution in this case is to not run
  118. so many things at once or to buy more memory.  You can also reclaim some
  119. memory by compiling and using a kernel with less options configured.  See
  120. Q7.6 `How do I upgrade/recompile my kernel ?'.
  121.  
  122. You can tell how much memory and/or swap you're using by using the free
  123. command, or by typing
  124.     cat /proc/meminfo
  125.  
  126. If your kernel is configured with a ramdisk this is probably wasted space
  127. and will cause things to go slowly.  Use LILO or rdev to tell the kernel
  128. not to allocate a ramdisk (see the LILO documentation or type man rdev).
  129.  
  130. - -----------------------------------------------------------------------------
  131.  
  132. Question 6.7.  I can only log in as root.
  133.  
  134. You probably have some permission problems, or you have a file
  135. /etc/nologin.
  136.  
  137. If the latter put rm -f /etc/nologin in your /etc/rc.local or /etc/rc.d/*
  138. scripts.
  139.  
  140. Otherwise check the permissions on your shell, and any filenames which
  141. appear in error messages, and also the directories containing these files
  142. all the way back up the tree to the root directory.
  143.  
  144. - -----------------------------------------------------------------------------
  145.  
  146. Question 6.8.  My screen is all full of weird characters instead of letters.
  147.  
  148. You probably sent some binary data to your screen by mistake.  Type echo
  149. ^V^[c (that's e c h o space control-V escape c return) to fix it.  Many
  150. Linux distributions have a command reset that does this.  If this happens
  151. to you often you might consider putting a control-O in your prompt - this
  152. is the ASCII `shift in' character.
  153.  
  154. - -----------------------------------------------------------------------------
  155.  
  156. Question 6.9.  I have screwed up my system and can't log in to fix it.
  157.  
  158. Reboot from an emergency floppy or floppy pair, for example the Slackware
  159. boot- and root-disk pair (in the install subdirectory of the Slackware
  160. mirrors) or the MCC installation boot floppy.  There are also two diy
  161. rescue disk creation packages on sunsite.unc.edu in
  162. /pub/Linux/system/Recovery.  These are better as they'll have your own
  163. kernel on them, so that you don't run the risk of missing devices,
  164. filesystems, etc.
  165.  
  166. Get to a shell prompt and mount your hard disk with something like
  167.    mount -t ext2 /dev/hda1 /mnt
  168.  
  169. Then your filesystem is available under the directory /mnt and you can fix
  170. the problem.  Remember to unmount your hard disk before rebooting (cd back
  171. down to / first or it will say it's busy).
  172.  
  173. - -----------------------------------------------------------------------------
  174.  
  175. Question 6.10.  Emacs just dumps core.
  176.  
  177. You probably have the X version of Emacs that comes with SLS.  It doesn't
  178. work without the X libraries.  The solution is to install X Windows or get
  179. a newer Emacs binary without any X Windows support.
  180.  
  181. - -----------------------------------------------------------------------------
  182.  
  183. Question 6.11.  I've discovered a huge security hole in rm !
  184.  
  185. No you haven't.  You are obviously new to Unix and need to read a good
  186. book on it to find out how thi