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