From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 09:35:35 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6441616A4CE for ; Fri, 16 Jan 2004 09:35:35 -0800 (PST) Received: from postal1.es.net (proxy.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56C4F43D53 for ; Fri, 16 Jan 2004 09:35:22 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Fri, 16 Jan 2004 09:35:20 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 964C65D07; Fri, 16 Jan 2004 09:35:20 -0800 (PST) To: Loh John Wu In-Reply-To: Message from Loh John Wu Date: Fri, 16 Jan 2004 09:35:20 -0800 From: "Kevin Oberman" Message-Id: <20040116173520.964C65D07@ptavv.es.net> cc: "'freebsd-current@freebsd.org'" Subject: Re: devfs error on RELENG_5_2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 17:35:35 -0000 > From: Loh John Wu > Date: Thu, 15 Jan 2004 21:31:18 -0500 > Sender: owner-freebsd-current@freebsd.org > > Hello, > > I'm running a RELENG_5_2 box and I'm trying to use the devfs to change the > file permissions on > /dev/ttyd1. After perusing through the man page, I tried to change the > permissions by doing this > > # ls -ol /dev/ttyd1 > crw------- 1 root wheel - 28, 1 Jan 15 20:47 /dev/ttyd1 > # devfs rule add path ttyd1 mode 666 > devfs rule: ioctl DEVFSIO_RADD: Input/output error > # ls -ol /dev/ttyd1 > crw------- 1 root wheel - 28, 1 Jan 15 20:47 /dev/ttyd1 > > but it fails and I'm not sure why. I'll have to do > devfs rule applyset if the rule add succeeds since the node /dev/ttyd1 > has already been created but I haven't got that far yet... > I've also tried using the example in the man page > with /dev/speaker, but it also fails with the same error. > > # ls -ol /dev/speaker > crw------- 1 root wheel - 26, 0 Jan 15 21:24 /dev/speaker > # dmesg | grep speaker > speaker0: at port 0x61 on isa0 > # devfs rule add path speaker mode 666 > devfs rule: ioctl DEVFSIO_RADD: Input/output error > # ls -ol /dev/speaker > crw------- 1 root wheel - 26, 0 Jan 15 21:24 /dev/speaker > > Any thoughts on this would be greatly appreciated. > Thanks, First, this sort of thing does NOT belong on hackers@! Second, I believe you want: devfs rule apply path speaker mode 0666 And, if you want it to be permanent, the entry in /etc/devfs.conf would be: perm speaker 0666 -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634