Anders,
> I'd like the user currently logged in on the console to own the console. how
> do I configure that? What are the `correct` mask to use?
Normally, the raw devices like /dev/console are owned by root. This
makes it difficult to accidently corrupt them. Further restrictions are
usually applied by symbolic link. Ownership is authority to
grant or deny access. Why do you want the currently logged in user to have
authority to grant or deny access to the command line channel used by the
kernel? What do you want to do that you can't do with the usual console mode,
crw--w-w- root sys?
If you want to further restrict the abilities of the current logged in
user, you need only make a symbolic link to /dev/console and deny the abilities
you wish. (e.g. ln -s /dev/console /dev/loggedinuser; chmod o-w
/dev/loggedinuser).
If you want to grant the logged in user ability to set the speed and
special characters for /dev/console, then as root grant read permission.
(e.g. sudo chmod a+r /dev/console) Be careful lest the logged in user
render the console inaccessible (until the system is rebooted).
Since /dev/console is mounted at sytem initialization before X is run
and anybody logs in, it cannot be initially owned by the logged in user. It
can not be owned by an as yet unknown user. A script would have to be run as
part of the login to change ownership of /dev/console from root. I am
unfamiliar with the mechanism for enforcing system-wide login procedures, but
believe that there is a file (/usr/X11/lib/system.login?) that can contain
such procedures.
Confused,
--
Robert Meier
FANUC Robotics North America, Inc. [EMAIL PROTECTED]
Voice: 1-248-377-7469 Fax: 1-248-377-7363