From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 08:44:21 2003 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 AC9BF16A4CE for ; Tue, 18 Nov 2003 08:44:21 -0800 (PST) Received: from fed1mtao07.cox.net (fed1mtao07.cox.net [68.6.19.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id D075B43FB1 for ; Tue, 18 Nov 2003 08:44:20 -0800 (PST) (envelope-from lrh@alum.mit.edu) Received: from Cogitek-UX1 ([68.99.218.204]) by fed1mtao07.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031118164419.SYML14590.fed1mtao07.cox.net@Cogitek-UX1> for ; Tue, 18 Nov 2003 11:44:19 -0500 From: Dr Lyman Hazelton To: freebsd-questions@FreeBSD.ORG Date: Tue, 18 Nov 2003 09:45:35 -0700 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311180945.35813.lrh@alum.mit.edu> Subject: Non-root access to peripheral file devices X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dr Lyman Hazelton List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 16:44:21 -0000 Perhaps this is discussed somewhere, but so far I haven't found anything that helps. I have two SCSI CDROM drives (/dev/cd0 and /dev/cd1) and an IDE floppy drive. All of these drives are mountable and work flawlessly if I am logged in as root. Trying to mount any of them as any other login-id results in an "operation not permitted" message and failure. I have a /cdrom mount point that is matched with /dev/cd0 in /etc/fstab and says its file type is cd9660. The permissions on /dev/cd0 are 0555. Same for /cdrom. The owner of both is root:wheel. I already tried setting the permissions to 5555... no help. The odd thing is that I can successfully run KsCD using either drive as a non-root user and play music through my sound card. (Can't seem to make any other sound work, but that is a separate issue.) I even tried creating a file in /usr/local/bin called mountcd that has just the line "mount /cdrom" in it, and setting the super user bit on the file. That works fine for root, but fails the same way for non-root users. Does anyone have a hint that will allow me to fix this problem? -Lyman