Subject: Re: /dev/console
To: Chris G. Demetriou <>
From: Frank van der Linden <>
List: current-users
Date: 04/08/1994 09:45:12
> re: "Couldn't open console" from xconsole:
> is /dev/console owned by you?

This is a problem with, for example, pcvt and X. You log in on /dev/ttyv0,
so that is chown()-ed to you. However, /dev/console is still owned by root.

Same could go for audio-devices, etc.

A solution to this can be to implemented the Sun-style login extension,
to change the owner and mode of certain device nodes. SunOS has a file
/etc/fbtab in which the ttys on which a user logs in, the devices and
modes are listed. For example:

/dev/ttyv0      0600    /dev/vga:/dev/console:/dev/tty00:/dev/fd0a:/dev/rfd0a

This means that all the listed devices will be owned by the user logging
in on /dev/ttyv0, and changed to mode 600. This is a line from my /etc/fbtab,
I hacked login and getty to read this table, and change the devices
(and back).

I think that it would be a good idea to implement this scheme in NetBSD too
(although the file should be called something other than 'fbtab', that's
not really an appropriate name)

> chris

- Frank