From owner-freebsd-questions Mon Aug 14 14: 6:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ilceille.pair.com (ilceille.pair.com [209.68.2.34]) by hub.freebsd.org (Postfix) with SMTP id B8CD937B517 for ; Mon, 14 Aug 2000 14:06:32 -0700 (PDT) (envelope-from asaddi@philosophysw.com) Received: (qmail 24641 invoked by uid 3276); 14 Aug 2000 21:06:20 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Aug 2000 21:06:20 -0000 Date: Mon, 14 Aug 2000 14:06:20 -0700 (PDT) From: Allan Saddi X-Sender: asaddi@ilceille.pair.com To: questions@FreeBSD.ORG Cc: Mike Meyer , keith@mail.telestream.com, Jan Pfeifer Subject: Re: allow users to mount CD In-Reply-To: Message-ID: Organization: Philosophy SoftWorks MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've found that I'm able to unmount the CD with "amq -u " as a normal user. The only thing about amd's cdfs support that bugs me is the fact that it only mounts the first session of a multi-session disc. I'm not sure if this is still true in 4.1-stable, but I was able to work around this problem by forcing amd to use /sbin/mount. -- Allan Saddi "The Earth is the cradle of mankind, asaddi@philosophysw.com but we cannot live in the cradle http://www.philosophysw.com/asaddi/ forever." - K.E. Tsiolkovsky On Mon, 14 Aug 2000 keith@mail.telestream.com wrote: > Ya, pretty much a timeout. To get to the desired mount point you just cd > to it like any other directory. It automaticaly mounts it and if it is > inactive for n seconds it will dismount. You can set the dismount time > though. > > Keith > > > ================================= > Keith W. > At the helm > > My non work related site > www.cydonia.net > ================================= > > > On Mon, 14 Aug 2000, Mike Meyer wrote: > > > keith@mail.telestream.com writes: > > > I recently just got amd to mount the cd localy. It's pretty neat > > > stuff. Also mounting remote SGI<5 minutes ago>, FreeBSD and Linux > > > machines. Working on the solaris machine now. I'd recomend anyone mounting > > > even the local cd via amd. > > > True there are a few things running that probably are over kill > > > for the job but it's a great way to do it if you want to have both > > > restriced and super user privies on it. You could have a amd.cdrom > > > config file for the users and one for superuser. I don't know if both > > > could be active in the amd.conf file at the same time but you could surely > > > point two different configs for the cdrom at different locations and give > > > each one different access. > > > > If you've got amd set up and running anyway, then using it for this > > makes some sense. If you need the things you can get with a super-user > > mount, that makes even more sense (sort of like using ppp -auto). > > > > How does it deal with dismounts? Last time I looked at amd, all that > > really happened was a timeout. That might be a problem in this case. > > > > If you get all this working nicely, a web page detailing how would > > probably be worthwhile. > > > > > > > > > > ================================= > > > Keith W. > > > At the helm > > > > > > My non work related site > > > www.cydonia.net > > > ================================= > > > > > > > > > On Mon, 14 Aug 2000, Mike Meyer wrote: > > > > > > > keith@mail.telestream.com writes: > > > > > I'm a TOTAL nfs/amd newbie but wouldn't it also be possible to setup amd > > > > > to mount the cd with the proper perms on it, having nfs/amd basicaly do > > > > > the perms according to what's in your /etc/exports file? > > > > > > > > Well, if you wanted to mount the cdrom via NFS from your local host, > > > > you could certainly do that. You might even be able to convince amd to > > > > mount the thing locally (I've been avoiding amd for the last 8 > > > > years). If there was something like Linux's autofs available, that > > > > would have a similar effect. > > > > > > > > But that's an awful lot of mechanism for what's essentially a simple > > > > problem. Basically, the reason users can't mount cdroms is security > > > > features; just setting those to a less secure mode solves the problem. > > > > > > > > > > > > > > > > ================================= > > > > > Keith W. > > > > > At the helm > > > > > > > > > > My non work related site > > > > > www.cydonia.net > > > > > ================================= > > > > > > > > > > > > > > > On Mon, 14 Aug 2000, Mike Meyer wrote: > > > > > > > > > > > Jan Pfeifer writes: > > > > > > > How do I let users mount a CD, or any other mount point ? > > > > > > > > > > > > This question was answered just last week. Basically, you add > > > > > > "vfs.usermount=1" to /etc/sysctl.conf (creating it if you need to), > > > > > > chmod the cd devices to mode 660, put the users you want to be able to > > > > > > mount things in group operator (which owns the CD devices by default; > > > > > > fix that or use the group that owns them instead if this isn't the > > > > > > case), then reboot the system. > > > > > > > > > > > > Users in group operator can then mount cds on directories *they* own. > > > > > > > > > > > > > ps2.: I wanted to avoid to make a suid script to do this ... > > > > > > > > > > > > Suid scripts are a very bad idea, so that's a good thing to avoid. If > > > > > > the above doesn't work, make it a C program instead of a script. > > > > > > > > > > > >