From owner-freebsd-questions Wed Aug 16 15:16: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.lsumc.edu (relay.lsumc.edu [155.58.128.154]) by hub.freebsd.org (Postfix) with ESMTP id 142C737BA6D for ; Wed, 16 Aug 2000 15:15:53 -0700 (PDT) (envelope-from jmire@lsuhsc.edu) Received: from exchgateway.lsumc.edu ([155.58.128.64]) by relay.lsumc.edu (Post.Office MTA v3.5.3 release 223 ID# 0-60969U13000L13000S0V35) with ESMTP id edu; Wed, 16 Aug 2000 17:15:55 -0500 Received: by exchgateway.lsumc.edu with Internet Mail Service (5.5.2650.21) id ; Wed, 16 Aug 2000 17:15:51 -0500 Message-ID: From: jmire@lsuhsc.edu (Mire, John) To: 'Marc Silver' , jan@ic.unicamp.br Cc: FreeBSD Questions Subject: RE: allow users to mount CD Date: Wed, 16 Aug 2000 17:13:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG try sudo from the ports(its been a dist. up , been using it for a long time across multiple machines and the example sudoers file at the end has an example to allow normal users to mount the cdrom -- John Mire LSU Health Sciences Center jmire@lsuhsc.edu Computer & Information Services (318) 675-5434 Network Group -----Original Message----- From: Marc Silver [mailto:marcs@draenor.org] Sent: Monday, August 14, 2000 08:15 To: jan@ic.unicamp.br Cc: FreeBSD Questions Subject: Re: allow users to mount CD Hey there, As far as I know there isn't something like this in FreeBSD. However, please find attached a short c program written by Omachonu Ogali that allows normal users to mount the cdrom (you can obviously modify it to mount the floppy as well). To install it, simply do the following: (as root) cc -o sucd sucd.c chmod 4555 sucd mv sucd /usr/local/bin What you're doing there is setting the binary as setuid which allows people to execute it as root, and allows them to mount/unmount the CD. I would warn against this. ONLY root should ever mount/unmount file systems, so unless you _really_ trust these users, I wouldn't allow this. Hope this helps. Cheers, Marc On Sun, Aug 13, 2000 at 06:07:47PM -0300, Jan Pfeifer wrote: > hi, > > How do I let users mount a CD, or any other mount point ? > > thanks, > > jan > > ps.: I tried the mount and fstab manpages to no avail > ps2.: I wanted to avoid to make a suid script to do this ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message