Date: Mon, 29 Mar 2004 00:22:52 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Jay Moore <jaymo@cromagnon.cullmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: automounting cd-rom & cd-rw devices Message-ID: <20040328232252.GA4298@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <200403281458.02053.jaymo@cromagnon.cullmail.com> References: <200403272013.40447.jaymo@cromagnon.cullmail.com> <200403281614.53868.malcolm.kay@internode.on.net> <200403281458.02053.jaymo@cromagnon.cullmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 28, 2004 at 02:58:01PM -0600, Jay Moore wrote: > On Sunday 28 March 2004 12:44 am, Malcolm Kay wrote: > > On Sunday 28 March 2004 11:43, Jay Moore wrote: > > > I have a FreeBSD 4.9 system; I am also running KDE... > > > > > > I'm building this system for my son (college student) <snip >... > > > </snip> ................... how to make the cd-rw & cd-rom devices > > > usable without requiring him to start a root shell and mount/umount t= hese > > > devices. >=20 > > > 1) Should I automount cd's? > > > > Depends what you mean by auto-mount >=20 > Good point... I guess what I'd really meant is automount in the Windoze s= ense=20 > of the word; i.e. if I put a music cd in I can play music, if I put a dat= a cd=20 > in I can read the files. I (regular joe user) don't have to su, or sudo t= o=20 > mount the device, and if I put a music cd in I don't cause a panic by try= ing=20 > to mount the device as a file system. In short, I want an automount that = can=20 > figure out whether I've got a music cd or a file system, and "do the righ= t=20 > thing". >=20 > > > 2) What is the "best way" to allow ordinary users to mount cd's? > > > > The best way is inevitably a matter of opinion. > > But it can be done without installing any additional ports. >=20 > I found a fairly complete (although slightly dated) recipe for using the = amd=20 > and sysctl functions to handle automounting for regular users at this URL: >=20 > http://www.daemonnews.org/200202/automounting.html >=20 > But there are two things that concern me: > 1) once the file system cd is mounted, a fixed amount of "no activity" ti= me=20 > must pass before it is umount'd > 2) security implications ?!! >=20 > Item 1) is a concern mostly 'cause it's just kind of kludge ("oh yeah, I = have=20 > to wait for 60 seconds before I can eject my data cd"). Item 2) is a conc= ern=20 > 'cause college campuses are the most hostile network environments I've ev= er=20 > seen. >=20 > I don't mean to sound critical (really)... maybe there's just no good way= to=20 > do this in FreeBSD. If that's the case, maybe WinXP is the best route for= the=20 > "average user". Sounds like what you want is vold(8) and associated utilities: http://www.freebsd.org/cgi/man.cgi?query=3Dvold&apropos=3D0&sektion=3D0= &manpath=3DSunOS+5.9&format=3Dhtml Unfortunately, I don't think anyone has ported it from Solaris yet, although there is this: http://vold.sourceforge.net/ There's also 'autodiskmount' on MacOSX which fulfils a similar function, which might be an easier thing to port. http://www.hmug.org/man/8/autodiskmount.html Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAZ15MdtESqEQa7a0RAth2AJ0aK1AR7gjBoIE4N1JOqco1JEq9sQCbBssv L/HIiCAVOclbMs7ixMh13dM= =INOx -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040328232252.GA4298>