From owner-freebsd-questions@FreeBSD.ORG Sun Jul 2 00:40:46 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 EF7BB16A59F for ; Sun, 2 Jul 2006 00:40:45 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mxsf40.cluster1.charter.net (mxsf40.cluster1.charter.net [209.225.28.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id C376944EA8 for ; Sat, 1 Jul 2006 19:56:37 +0000 (GMT) (envelope-from chowse@charter.net) Received: from mxip01a.cluster1.charter.net (mxip01a.cluster1.charter.net [209.225.28.131]) by mxsf40.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id k61Juaho008323 for ; Sat, 1 Jul 2006 15:56:36 -0400 Received: from 24-176-112-254.dhcp.jcsn.tn.charter.com (HELO [192.168.254.3]) ([24.176.112.254]) by mxip01a.cluster1.charter.net with ESMTP; 01 Jul 2006 15:56:37 -0400 X-IronPort-AV: i="4.06,198,1149480000"; d="scan'208"; a="204451272:sNHT40435814" Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <200607011544.50178.amistry@am-productions.biz> References: <726E36F8-D30D-486B-BBC2-960DFA47B1FA@charter.net> <200607011316.58940.amistry@am-productions.biz> <200607011544.50178.amistry@am-productions.biz> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <17F63632-4EF3-4411-AF2D-C3D0BEAB5423@charter.net> Content-Transfer-Encoding: 7bit From: Charles Howse Date: Sat, 1 Jul 2006 14:56:35 -0500 To: FreeBSD Questions X-Mailer: Apple Mail (2.752.2) Subject: Re: permissions in devfs.conf don't stick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 00:40:46 -0000 On Jul 1, 2006, at 2:44 PM, Anish Mistry wrote: > On Saturday 01 July 2006 14:34, Charles Howse wrote: >> On Jul 1, 2006, at 12:16 PM, Anish Mistry wrote: >>> On Saturday 01 July 2006 11:54, Charles Howse wrote: >>>> I've added the following to /etc/devfs.conf: >>>> own lpt0 root:wheel >>>> perm lpt0 0660 >>>> >>>> Save that, then, # chmod 0660 /dev/lpt0 >>>> >>>> When I reboot, the permissions revert to the default of 0600. >>>> Anyone know why that is? >>> >>> man devfs.rules >>> http://am-productions.biz/docs/devfs.rules.php >> >> Sorry, this just isn't working for me. >> >> /etc/rc.conf contains: >> devfs_rulesets="/etc/defaults/devfs.rules /etc/devfs.rules" >> devfs_system_ruleset="local_rules" >> >> $ cat /etc/devfs.rules >> [local_rules=10] >> add path lpt0 mode 660 group wheel >> >> devfs does not complain when I restart it. > When you restart devfs "/etc/rc.d/devfs restart" are the correct > permission that you've set in devfs.rules applied? >> Well, they are now. I decided to press "Enter" at the end of the second line in devfs.rules. Apparently, that's what it wanted. That seems to me to be an inconsistency with lots of files. Some want the cr/lf, some don't. -- Thanks, Charles http://bubbabbq.homeunix.net