From owner-freebsd-questions@FreeBSD.ORG Tue Nov 9 23:28:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5923F16A4CE for ; Tue, 9 Nov 2004 23:28:52 +0000 (GMT) Received: from smtp.mi.is (smtp.mi.is [217.151.180.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB23443D60 for ; Tue, 9 Nov 2004 23:28:51 +0000 (GMT) (envelope-from thib@mi.is) Received: from caulfield.bitcode.eu.org (thib.pentagon.ms [217.151.165.254]) by smtp.mi.is (8.12.10/8.12.10/1.0.1) with SMTP id iA9NSonF002697 for ; Tue, 9 Nov 2004 23:28:50 GMT Date: Tue, 9 Nov 2004 23:28:51 +0000 From: "Thordur Ivar B." To: questions@freebsd.org Message-Id: <20041109232851.50fe3154.thib@mi.is> Organization: n/a X-Mailer: Sylpheed version 1.0.0beta1 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: devfs + rulesets. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2004 23:28:52 -0000 Good day/night. I have been having some troubles with devfs (the config files that is). Here is what I want todo: I want to be able to allow users in group 'cdrom' to acces (rw) to /dev/acd0 First of all i created the group ;). So far so good. Then i uncommented this line: link acd0 cdrom in /etc/devfs.conf (My only change in that file, so far). So far so good. Now heres where the trouble begins: I can by using the command line utility (devfs) allow users in group cdrom to rw /dev/acd0{cdrom} By issuing the following commands: # devfs ruleset 10 # devfs rule add path acd0 group cdrom # devfs rule add path acd0 mode 0660 # devfs rule applyset Here I have: [thib@caulfield thib]$ ls -al /dev/ | grep acd0 crw-rw---- 1 root cdrom 4, 21 Nov 9 23:11 acd0 lrwxr-xr-x 1 root wheel 4 Nov 9 23:11 cdrom -> acd0 So far so good. But when I add these lines: own acd0 root:cdrom perm acd0 0660 to /etc/devfs.conf I get this: /etc/rc: WARNING: devfs_set_ruleset: you must specify a ruleset number /etc/rc: WARNING: devfs_apply_ruleset: you must specify a ruleset in my dmesg. Okey. So I took a look in /etc/defaults/devfs.rules and did the following: (PS: I removed the own/perm lines in /etc/devfs.conf # touch /etc/devfs.rules And added these lines to the file: [devfsrules_cdrom=10] add path acd0 group cdrom add path acd0 mode 06660 When I reboot I get the same error messages: /etc/rc: WARNING: devfs_set_ruleset: you must specify a ruleset number /etc/rc: WARNING: devfs_apply_ruleset: you must specify a ruleset Here's the kicker, even though I get these error messages it "DOES WHAT I WANT"... My questions is, what is the proper way of specifying a ruleset in either /etc/devfs.conf or /etc/devfs.rules and wich of the files should I use ? I'm sorry if I missed something obvious in the manpages (or did not google enough). Please CC me for I'm not on the list. -- Kv, thib[att]mi{dot}is As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein