From owner-freebsd-questions@FreeBSD.ORG Fri May 20 23:18:48 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 9ED5016A4CF for ; Fri, 20 May 2005 23:18:48 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 015D243D76 for ; Fri, 20 May 2005 23:18:48 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 604F9C91AD0 for ; Fri, 20 May 2005 19:18:45 -0400 (EDT) X-Sasl-enc: yYaSE17HIQIV/iOk6nCl/tK73kwjoMrObQcfttLxv8wV 1116631125 Received: from gumby.localhost (dsl-80-41-76-247.access.as9105.com [80.41.76.247]) by frontend3.messagingengine.com (Postfix) with ESMTP id 609D45F for ; Fri, 20 May 2005 19:18:45 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Sat, 21 May 2005 00:18:41 +0100 User-Agent: KMail/1.8 References: <428E5BF9.4050509@houston.rr.com> <428E5E65.70008@houston.rr.com> In-Reply-To: <428E5E65.70008@houston.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200505210018.42520.list-freebsd-2004@morbius.sent.com> Subject: Re: all users to mount cd's X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 23:18:48 -0000 On Friday 20 May 2005 23:02, Ryan Winograd wrote: > Ryan Winograd wrote: > > On May 20, 2005 04:10 pm, Ryan Winograd wrote: > >>> Is there an easy way to allow any user to mount cd's? > >>> Well, yes. I have proper perms on cd devs and if a user creates > >>> a directory he owns he can mount from command line w/ sudo. > >>> > >>> There are, however, some requiremnents i am trying to meet. > >>> > >>> I would like the mounting process to be much easier. I am using > >>> KDE and would like to have the cd's mount automatically so that > >>> the users don't have to know how to use the command line. How > >>> can I accomplish this? > >>> > >>> Thanks in advance for all advice, > >>> Ryan w > > > > Everything in that FAQ still works : > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FL= OP > >PYMOUNT > > > > > > Basically, type sysctl vfs.usermount=3D1 or add the line > > vfs.usermount=3D1 to /etc/sysctl.conf so that it changes itself at > > boot. Make sure your cdrom has the correct permission in > > /etc/devfs.conf (example : perm acd0 777). > > Make a user-readable folder in the users home directory > > (/home/myself/cdrom) > > Make a fstab entry in /etc/fstab for that user (/dev/acd0 > > /home/myself/cdrom cd9660 ro,noauto 0 0) > > Make an device icon on the KDE desktop with that user's fstab entry > > (found in the Device tab). > > > > Anyone sees a mistake in this, please fix, > > > > Nicolas. > > I was hoping to avoid adding to the fstab for every user on my network. What I do is add a few lines like chown $USER =A0/dvd to /usr/local/share/config/kdm/Xstartup so when a user logs in through kdm the ownership of the mountpoints are=20 changed.=20