From owner-freebsd-questions Sun Aug 15 6: 8:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from juno.dsj.net (sylvester.dsj.net [208.148.155.228]) by hub.freebsd.org (Postfix) with ESMTP id 997E114E96 for ; Sun, 15 Aug 1999 06:08:16 -0700 (PDT) (envelope-from dsj@juno.dsj.net) Received: (from dsj@localhost) by juno.dsj.net (8.9.2/8.9.2) id JAA45850; Sun, 15 Aug 1999 09:08:41 -0400 (EDT) (envelope-from dsj) Date: Sun, 15 Aug 1999 09:08:41 -0400 From: "David S. Jackson" To: ilia@cgilh.chel.su Cc: freebsd-questions@freebsd.org Subject: Re: Mount CDROM from User Account Message-ID: <19990815090841.C44880@juno.dsj.net> Reply-To: "David S. Jackson" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So then Ilia Chipitsine said . . . > sudo is _that_ tricky. option "user" in /etc/fstab makes much more > sense... The more I think of it, the less I'm comfortable with the 'user' option too. I can just see some anon. ftper ejecting the CD-ROM! By the way, does the BSD implementation of mount even allow the 'user' option? Anyway, something like 'su -c "$mountcmd $device $mountpt"' in the previous script would make a lot more sense to me. But I see the BSD implementation of 'su' has a '-c' switch that doesn't mean the same as the SysV '-c'. How could you do 'su -c "$mountcmd $device $mountpt"' in a script in BSD? Something like 'su -c root "$mountcmd $device $mountpt"' ? I didn't see an example in the manpage. TIA! -- David S. Jackson http://www.dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Out ed0, through the firewall, over the analog line, into usr1, past another firewall, through the gateway, out the T-3, off core2 in Atlanta . . . nothin' but Net. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message