Installing latest version of LaTeX

perryh at pluto.rain.com perryh at pluto.rain.com
Sat Jun 6 22:37:48 UTC 2009


Roland Smith <xs4all.nl!rsmith at 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:
> > >>
> > >> [daniel at 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.


More information about the freebsd-questions mailing list