Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 1999 09:08:41 -0400
From:      "David S. Jackson" <dsj@dsj.net>
To:        ilia@cgilh.chel.su
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mount CDROM from User Account
Message-ID:  <19990815090841.C44880@juno.dsj.net>

next in thread | raw e-mail | index | archive | help
So then Ilia Chipitsine <ilia@cgilh.chel.su> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990815090841.C44880>