From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 05:28:41 2008 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 6C7CA1065683 for ; Mon, 30 Jun 2008 05:28:41 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 22CDE8FC12 for ; Mon, 30 Jun 2008 05:28:41 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so518575wra.27 for ; Sun, 29 Jun 2008 22:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=1LVH6ec1oUaRbvdeL4qKl45bZMvIKcae2371tmhJ9E0=; b=VqxpE9/tyxd7m2NbxfdM94lWWXJimTFO+1S+c/GEDoVRUXFf8lP9G0EQAYK/8MkPMA +/jIrmSBJ8mR7xDhSQRQBJcjJRpbs2Amzm7luVUYlUGJZsZIBvzOjkE44qCKHQQfWUIZ vNtjVGVE9W6Hk2X1PL3+PxwZgNGUilE53fTGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=Qm40+3ZY/Q012BsaS/7pgZ/tHB/GDtzTn/C9TM3ZgqNueF3YeFoU019W2/Vo4Gfmoz bgPC4ZdFkSGGnJ7w/cWtrsna9p0weGhZB3kBzAdUvyU/ZRW7NhBrNfPTzLQCmwuZtmYU QzgLLIRKzdx5ooZ/GgSct/OoqQJqdQ6BaveGw= Received: by 10.90.116.9 with SMTP id o9mr4400765agc.49.1214803720358; Sun, 29 Jun 2008 22:28:40 -0700 (PDT) Received: from 200-117-245-190.fibertel.com.ar ( [190.245.117.200]) by mx.google.com with ESMTPS id 6sm2389859ywp.3.2008.06.29.22.28.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Jun 2008 22:28:39 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Mon, 30 Jun 2008 02:28:34 -0300 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806300228.34483.gnemmi@gmail.com> Subject: Re: Error kio_media_mounthelper cdrom not accessible for normal users 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: Mon, 30 Jun 2008 05:28:41 -0000 On Sunday 29 June 2008 23:40:21 Desmond Chapman wrote: > "Feature only available with HAL" > I have asked about this. I have searched. I have tried sysctl, I have > edited devfs.conf and to no avail. I have changed permissions on the > device. > And I still cannot access it as a normal non-root user. > > How do I make it work? Try this. 1) as root: add the following line to the end of your /etc/sysctl.conf file vfs.usermount=1 2) as root: Invite your user to the "operator" group 3) as root: chmod 660 /dev/acd0 4) as root: add this lines to the end of your /etc/devfs.conf file own /dev/acd0 root:operator perm /dev/acd0 0660 5) as root: edit your /etc/fstab to add a line like this: /dev/acd0 /home/youruser/media cd9660 rw,noauto 0 0 6) as root: issue the following command: /etc/rc.d/devfs restart 7) as user: create a "media" folder inside your "home folder" (the thing is that users can only mount on folders they own ...) When done .. give it a shot: [gonzalo@inferna ~]% pwd /usr/home/gonzalo [gonzalo@inferna ~]% ls media/ [gonzalo@inferna ~]% mount -t cd9660 /dev/acd0 media/ [gonzalo@inferna ~]% ls media/ 4.3/ TRANS.TBL etc/ [gonzalo@inferna ~]% cd media/4.3/ [gonzalo@inferna ~/media/4.3]% ls TRANS.TBL i386/ [gonzalo@inferna ~/media/4.3]% cd i386/ [gonzalo@inferna ~/media/4.3/i386]% ls INSTALL.i386 boot.catalog* bsd.rd* comp43.tgz man43.tgz xetc43.tgz xshare43.tgz TRANS.TBL bsd* cdboot* etc43.tgz misc43.tgz xfont43.tgz base43.tgz bsd.mp* cdbr* game43.tgz xbase43.tgz xserv43.tgz [gonzalo@inferna ~/media/4.3/i386]% cd ~ [gonzalo@inferna ~]% umount media/ [gonzalo@inferna ~]% ls media/ [gonzalo@inferna ~]% If it worked, feel free to create a "Create New/Link to Device/CD-ROM Device" in your KDE desktop ... just make sure that in the "Device" tab entry, the path points to /dev/acd0 (/home/youruser/media), and that the rw or ro values are correlative to those in your /etc/fstab entry. Hope it works your you. That's the way it works for me :) -- Blessings Gonzalo Nemmi