From 3bae3606f6118f0c07e7c24975caaeb20a64160a Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Mon, 25 Oct 2004 16:37:32 +0000 Subject: [PATCH] In scanners section: By default, under 5.X, uscanner0 permissions are 0640 preventing users in operator group to use the scanner (a write access is required). So let's show how to change the permissions to 660 (for example) via devfs.rules and the devfs_system_ruleset option in rc.conf. This gives an example on how to change permissions on a node that is not always present at system boot. --- .../books/handbook/multimedia/chapter.sgml | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml index ce1632ef4b..4d8426a9a5 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml @@ -1815,7 +1815,27 @@ device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner &prompt.root; pw groupmod operator -m joe - For more details read the &man.pw.8; manual page. + For more details read the &man.pw.8; manual page. You + also have to set the correct write permissions (0660 or 0664) + on the /dev/uscanner0 device node, by + default the operator group can only + read the device node. This is done by adding the following + lines to the /etc/devfs.rules file: + + [system=5] +add path uscanner0 mode 660 + + Then add the following to + /etc/rc.conf and reboot the + machine: + + devfs_system_ruleset="system" + + More information regarding these lines can be found in the + &man.devfs.8; manual page. Under &os; 4.X, the + operator group has, by default, read + and write permissions to + /dev/uscanner0. Of course, for security reasons, you should think twice