Jeff wrote:
> Could someone please shed some light on how pfexec relates to redirecting
> output of the command.
>
> For example this won't work:
> $ pfexec cat /dev/null > /etc/resolv.conf
> bash: /etc/resolv.conf: Permission denied
That causes the shell to (try to) open /etc/resolv.conf as you,
and then run pfexec cat /dev/null with it's output set to it.
Since the redirect is handled by the shell, not the command, it
doesn't get the added privileges that pfexec applies to the command.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering