VirtualBox

Ticket #5082: logindevperm

File logindevperm, 1.8 KB (added by Mike Riley, 15 years ago)

Modified /etc/logindevperm file

Line 
1#
2# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3# Use is subject to license terms.
4#
5# /etc/logindevperm - login-based device permissions
6#
7# If the user is logging in on a device specified in the "console" field
8# of any entry in this file, the owner/group of the devices listed in the
9# "devices" field will be set to that of the user. Similarly, the mode
10# will be set to the mode specified in the "mode" field.
11#
12# If the "console" is "/dev/vt/active" which is a symlink to the current
13# active virtual console (/dev/console, or /dev/vt/#), then the first
14# user to log into any virtual console will get ownership of all the
15# devices until they log out.
16#
17# "devices" is a colon-separated list of device names. A device name
18# ending in "/*", such as "/dev/fbs/*", specifies all entries (except "."
19# and "..") in a directory. A '#' begins a comment and may appear
20# anywhere in an entry.
21# In addition, regular expressions may be used. Refer to logindevperm(4)
22# man page.
23# Note that any changes in this file should be made when logged in as
24# root as devfs provides persistence on minor node attributes.
25#
26# console mode devices
27#
28/dev/vt/active 0600 /dev/mouse:/dev/kbd
29/dev/vt/active 0600 /dev/sound/* # audio devices
30/dev/vt/active 0600 /dev/fbs/* # frame buffers
31/dev/vt/active 0600 /dev/dri/* # dri devices
32/dev/vt/active 0400 /dev/removable-media/dsk/* # removable media
33/dev/vt/active 0400 /dev/removable-media/rdsk/* # removable media
34/dev/vt/active 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
35/dev/vt/active 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
36/dev/vt/active 0600 /dev/video[0-9]+ # video devices
37/dev/vt/active 0666 /dev/usb/hid[0-9]+ # hid devices should have the same permission with conskbd and consms
38/dev/vt/active 0666 /dev/usb/[0-9a-f]+[.][0-9a-f]+/[0-9]+/* driver=scsa2usb,usb_mid,usbprn,ugen #libusb/ugen devices

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy