From owner-freebsd-questions@FreeBSD.ORG Fri Oct 9 18:34:06 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A08B2106566B for ; Fri, 9 Oct 2009 18:34:06 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 219CF8FC12 for ; Fri, 9 Oct 2009 18:34:04 +0000 (UTC) Received: by fxm22 with SMTP id 22so6777452fxm.36 for ; Fri, 09 Oct 2009 11:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Dc780IGpyas/g0mis96gx090wRK7NcDAaYKkcExVuzU=; b=TLgB6bjwZZsgk0EHaNqV4L8UplOHkIzLHLiyNSVTi5WFw7o4UHzqeh15Dn8gCdzpgO 4hcPj+ZM5K14CChTizDtgNU7+HpLBqOzfOjxlg/wn4YU8jG0Ip7wlTUCytlUB4Ta80Jw yS7wtXS3lwQu7cypQbGucqzYo+OdSd6WYuC5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=VrQU4xN0yOw6Ix3/vMkjhHwPY2SImUsTpX7M8N+CEj1HPQ2rj9BpdUov1/TJKethsF WTgw5Rq3XteC7+4vRMEBWVUrhYnhAcrijikHjXQUWPbEW7dJy9KL8gDX81TH185DnDGs 40DUOkdVzwuKit0Kpfao9Wp57WYr15pM2jBOo= Received: by 10.103.78.22 with SMTP id f22mr1265268mul.14.1255113243624; Fri, 09 Oct 2009 11:34:03 -0700 (PDT) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id s11sm644781mue.41.2009.10.09.11.34.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 11:34:01 -0700 (PDT) Message-ID: <4ACF8218.1080306@gmail.com> Date: Fri, 09 Oct 2009 14:34:00 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20090915) MIME-Version: 1.0 To: Oliver Fromme References: <200910091653.n99Grsfg028286@lurza.secnetix.de> In-Reply-To: <200910091653.n99Grsfg028286@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Roland Smith , freebsd-questions@freebsd.org Subject: Re: How to set device permissions at startup 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: Fri, 09 Oct 2009 18:34:06 -0000 Oliver Fromme wrote: > Roland Smith wrote: > > Oliver Fromme wrote: > > > Quote from the manpage: > > > "The devfs.rules file provides an easy way to create and apply > > > devfs(8) rules, even for devices that are not available at boot." > > > > > > The rules take effect whenever a new node (devide) appears, > > > even after devfs was mounted. > > > > But one has to run '/etc/rc.d/devfs restart' for newly added rules to take > > effect! (or reboot the system, which is overkill). > > Yes, of course. I thought that was obvious. > > > Maybe I whould add that to the manual page for devfs.rules? > > Agreed, that might be an appropriate clarification. > > Best regards > Oliver > > It should be included because not everyone uses the standard /etc/rc.* hierachy. For example I have a completely custom rc which before I did an other hack to make this issue not an issue read: #!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/boot/kernel:/boot/modules export PATH kldload fuse swapon -a fsck -p mount -rw / mount -a sysctl vfs.usermount=1 ntfs-3g /dev/ad4s1 /mnt/c /usr/local/etc/rc.d/hald onestart hostname aryeh-desktop.istudentunion.com ifconfig ale0 192.168.2.2 ifconfig lo0 127.0.0.1 route add 127.0.0.1 102.168.2.2 route add default 192.168.2.1 named ntpdate pool.ntp.org cupsd noip2 sendmail -bd -q1m