sh in linux_base cannot write to /dev/null

Kris Kennaway kris at obsecurity.org
Mon Dec 20 12:47:09 PST 2004


On Mon, Dec 20, 2004 at 12:18:30PM -0600, Stephen Montgomery-Smith wrote:
> I installed linux_base from the ports.  If I then run
> /compat/linux/bin/sh
> and then type
> cat > /dev/null
> I get an error message:
> sh: /dev/null: Permission denied
> 
> Incidently this error doesn't happen with linux_base-8.
> 
> I am running FreeBSD-5.3-STABLE and ls -l /dev/null gives
> crw-rw-rw-  1 root  wheel    2,   2 Dec 20 12:11 /dev/null

It's actually /compat/linux/dev/null that's being written to.  What's
there on your machine?

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20041220/26a7b8f9/attachment.bin


More information about the freebsd-ports mailing list