From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 20:32: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 1593416A4DF for ; Sun, 27 Aug 2006 20:32:46 +0000 (UTC) (envelope-from ajm91qw@sbcglobal.net) Received: from smtp113.sbc.mail.mud.yahoo.com (smtp113.sbc.mail.mud.yahoo.com [68.142.198.212]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BF3743D78 for ; Sun, 27 Aug 2006 20:32:40 +0000 (GMT) (envelope-from ajm91qw@sbcglobal.net) Received: (qmail 47202 invoked from network); 27 Aug 2006 20:32:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:Date:From:To:Subject:Message-ID:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=J5cK9Uk4ZxdgldMucXvTDpDuRewLMNJKqgurbJ6T805nfYsgMPYRHZuDuEIu2DNVKOVeS1V0RKHnc0q7tYjcpa8EIOHSWjXrVSb4YZjaGKruvrtpRpk2eIxXjVvW73OERT1/z/GXtf3hDP1okXqj9tDilqj/kPaEWCrcixRTxgo= ; Received: from unknown (HELO localhost) (ajm91qw@sbcglobal.net@75.24.67.76 with plain) by smtp113.sbc.mail.mud.yahoo.com with SMTP; 27 Aug 2006 20:32:39 -0000 Date: Sun, 27 Aug 2006 15:34:09 -0500 From: ajm To: freebsd-questions@freebsd.org Message-ID: <20060827203409.GA710@powerfull.bsd> References: <73d604760608270741k4998723au81b258ef17b41c70@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73d604760608270741k4998723au81b258ef17b41c70@mail.gmail.com> User-Agent: Mutt/1.5.11 Subject: Re: User permissions to mount CDROM 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, 27 Aug 2006 20:32:46 -0000 On Sun, Aug 27, 2006 at 08:11:16PM +0530, Viswas Nair wrote: > I have been trying to figure out how to give users to mount CD rom and have > been largely unsuccessful. Here are a few things I tried: > 1) Added user to the 4th field (options) in /etc/fstab > 2) Added vfs.usermount=1 to sysctl.conf > 3) Created a group called optical and added the root and alpha to it > 4) Added following lines to devfs,conf : > own /dev/acd0 root:optical > perm /dev/acd0 0770 > own /dev/acd1 root:optical > perm /dev/acd1 0770 > 5) Rebooted machine and tried to mount /dev/acd0 into /cdrom and it failed > with the message: > got the error message: /dev/acd0 Try the following: create a subdirectory in the users home directory. example: /home/steven/cdrom mount_cd9660 /dev/acd0 /home/steven/cdrom also, you can change the permission to 550 (read/execute by owner and group) no need for write permission. make sure that your users are part of the optical group. One more thing...users will not be able to mount anything to /cdrom since it will belong to root/wheel. Hope this helped you. -- FreeBSD 6.0-RELEASE i386 GENERIC