home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17227 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.4 KB

  1. Path: sparky!uunet!wupost!cs.utexas.edu!uwm.edu!biosci!agate!doc.ic.ac.uk!sot-ecs!mrd
  2. From: mrd@ecs.soton.ac.uk (Mark Dobie)
  3. Newsgroups: comp.os.linux
  4. Subject: OK, I give in, how *does* an X console work?
  5. Message-ID: <13602@ecs.soton.ac.uk>
  6. Date: 19 Nov 92 11:36:41 GMT
  7. Sender: news@ecs.soton.ac.uk
  8. Lines: 30
  9. Nntp-Posting-Host: marr
  10.  
  11.  
  12. Now that I got my TCP/IP working I have lots of console messages to
  13. look at, but xterm -C doesn't seem to do the business.
  14.  
  15. I have checked all my devices (tty's ptty's etc) with the list in the
  16. FAQ and it all seems to be in order. /dev/console is a hard link to
  17. /dev/tty0 which has the major and minor numbers 4 and 0, thus,
  18.  
  19. crw-rw-rw-   2 root     root       4,   0 Nov 19 11:00 /dev/console
  20.  
  21. All the output to /dev/console appears on the virtual console, so I
  22. get to see it when I leave X. This is all running as an ordinary user.
  23.  
  24. I read somewhere that the ownership of the console needs to be the
  25. same as the user writing to it. If I 'su' and manually change it,
  26. everything is hunkydory, but if I have it in a setuid shell script
  27. (owned by root) then I get...
  28.  
  29. 'chown: /dev/console: Operation not permitted'
  30.  
  31. when I run it as an ordinary user.
  32.  
  33. I know I'm nearly there. Can anyone give me that last little clue?
  34.  
  35. Thanks,                Mark.
  36.  
  37.  
  38. -- 
  39. Mark Dobie                              M.R.Dobie@uk.ac.soton.ecs (JANET)
  40. University of Southampton        M.R.Dobie@ecs.soton.ac.uk (The World)
  41.