Roland Smith <xs4all.nl!rsm...@agora.rdrop.com> wrote: > On Sat, Jun 06, 2009 at 08:04:19PM +0200, Peter Boosten wrote: > > Roland Smith wrote: > > > On Sat, Jun 06, 2009 at 01:46:36PM -0400, Daniel Underwood wrote: > > >> Having trouble mounting the ISO: > > >> > > >> [dan...@bsdbox ~]$ sudo mount_cd9660 -o ro /dev/`mdconfig > > >> -a -t vnode -f ./texlve2008.iso` ./mount/ > > >> mdconfig: open(/dev/mdctl): Permission denied > > > > > > Regular users don't have read/write permissions on /dev/mdctl. > > > ... > > Hmmm, one might think that 'sudo' does exactly that ;-) > > It does that for the mount_cd9660 command, but _before_ sudo it > called, the code between backticks is executed by the shell as the > regular user. I thought that was obvious, so I didn't mention it.
Perhaps (untested): sudo 'mount_cd9660 -o ro /dev/`mdconfig -a -t vnode -f ./texlve2008.iso` ./mount/' The idea being that, AFAIK, backticks within single quotes won't be interpreted by the current shell, so should be handled by the sudo shell. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"