From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 00:24:16 2005 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 E94E516A4CE for ; Sun, 3 Apr 2005 00:24:16 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C51643D48 for ; Sun, 3 Apr 2005 00:24:16 +0000 (GMT) (envelope-from randyprimeaux@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so920271rng for ; Sat, 02 Apr 2005 16:24:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OKvk/qEWQCkldwi0z/PdfIri28S1p2iTGRfkD/bYQ3mBIBG4if6TnXa5c7jHpYVr1EzL1YdIsONYpeUnKUqaZU7agQGIO8fh9iQzAuLssIoFmgYC4CgJ5mM+8Tgpxar4HgOENNQDq7szVIdRkm28xhJ+vuqG5hJzp4kV6Al1nrg= Received: by 10.38.151.1 with SMTP id y1mr4071265rnd; Sat, 02 Apr 2005 16:24:15 -0800 (PST) Received: by 10.38.98.33 with HTTP; Sat, 2 Apr 2005 16:24:15 -0800 (PST) Message-ID: <54b47b8a05040216247ea6fbca@mail.gmail.com> Date: Sat, 2 Apr 2005 16:24:15 -0800 From: Randy Primeaux To: freebsd-questions@freebsd.org In-Reply-To: <20050402091023.GA90617@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <54b47b8a050401201239941399@mail.gmail.com> <20050402091023.GA90617@slackbox.xs4all.nl> cc: Roland Smith Subject: Re: file mode on dynamicly created cua/tty devices X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Randy Primeaux List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 00:24:17 -0000 Roland, thanks. Kris, I'd read "man devfs", but couldn't wrap my head around it in the time available. The comments in this email are for the benefit of future readers. I solved my issue my implementing a ruleset as Roland had suggested in his webpage, and applied the ruleset. And yes, the man page helped me through this process. ***** /etc/devfs.rules [chuck_usb=10] add path 'da*' mode 0660 group usb add path 'cua*' mode 0666 ***** /etc/rc.conf # Set the default devfs ruleset. devfs_system_ruleset="chuck_usb" ***** This is a sample of what I did at the commandline. # /sbin/devfs rule -s 10 add path 'cua*' mode 0666 # /sbin/devfs ruleset 10 apply # ls -laF /dev/cua* crw-rw-rw- 1 root wheel 12, 152 Apr 2 14:00 /dev/cuaU0 crw-rw-rw- 1 root wheel 12, 155 Apr 1 00:38 /dev/cuaU0.init crw-rw-rw- 1 root wheel 12, 154 Apr 1 00:38 /dev/cuaU0.lock crw------- 1 root wheel 12, 70 Apr 1 00:38 /dev/cuad0 crw------- 1 root wheel 12, 65 Apr 1 00:38 /dev/cuad0.init crw------- 1 root wheel 12, 64 Apr 1 00:38 /dev/cuad0.lock I wasn't able to correctly "add path" directly. #devfs add path 'cua*' mode 0666 devfs: unknown command: add # devfs rule add path 'cua*' mode 0666 devfs rule: ioctl DEVFSIO_RADD: Input/output error Now I can hotsync and backup my Palm with Kpilot. Yay! On Apr 2, 2005 1:10 AM, Roland Smith wrote: > On Fri, Apr 01, 2005 at 08:12:05PM -0800, Randy Primeaux wrote: > > How do I set file mode to 0666 on dynamicly created devices, such as > > cua* and tty* ? > > With devfs(8). To set the permissions from the command line, use > > devfs add path 'cua*' mode 0666 > > This setting is lost at reboot, unless you put it in > /etc/devfs.rules. See my freebsd page at > http://www.xs4all.nl/~rsmith/freebsd/ for a more thorough explenation. > > Roland > -- > R.F. Smith /"\ ASCII Ribbon Campaign > r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail > http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail > public key: http://www.keyserver.net / \ Respect for open standards