Date: Sat, 21 May 2005 00:18:41 +0100 From: RW <list-freebsd-2004@morbius.sent.com> To: freebsd-questions@freebsd.org Subject: Re: all users to mount cd's Message-ID: <200505210018.42520.list-freebsd-2004@morbius.sent.com> In-Reply-To: <428E5E65.70008@houston.rr.com> References: <428E5BF9.4050509@houston.rr.com> <428E5E65.70008@houston.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505210018.42520.list-freebsd-2004>