From owner-freebsd-questions@FreeBSD.ORG Sat Jun 6 22:37:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08C04106566C for ; Sat, 6 Jun 2009 22:37:48 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (unknown [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id D23A58FC08 for ; Sat, 6 Jun 2009 22:37:47 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n56MbjLt086489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 6 Jun 2009 15:37:45 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n56MbjMw086487; Sat, 6 Jun 2009 15:37:45 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA11782; Sat, 6 Jun 09 15:24:05 PDT Date: Sat, 06 Jun 2009 15:23:00 -0700 From: perryh@pluto.rain.com To: rsmith@xs4all.nl, peter@boosten.org Message-Id: <4a2aec44.Ns0KUKDux1uwGV04%perryh@pluto.rain.com> References: <900923.129.qm@web39101.mail.mud.yahoo.com> <86prdhuazk.fsf@nowhere.org> <20090606180108.GA20291@slackbox.xs4all.nl> <4A2AAFA3.7080502@boosten.org> <20090606191241.GB21767@slackbox.xs4all.nl> In-Reply-To: <20090606191241.GB21767@slackbox.xs4all.nl> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Installing latest version of LaTeX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2009 22:37:48 -0000 Roland Smith 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@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.