On Mon, 12 Feb 2001, Gustav Schaffter wrote:

> Hi,
>
> When one of my users try to:
>
> any_command | /dev/nul
>
> the response is either that the file /dev/nul doesn't exist or that he
> doesn't have permissions to do that.
>
> If the same user tries to:
>
> any_command | /dev/null
>                    ^^^^
>
> it works fine.
>
> I'm surpriced. Why is /dev/nul reserved for root? What could a user harm
> by sending stuff to /dev/nul ? And what's the difference between
> /dev/nul and /dev/null ?
>
> Regards
> Gustav
>
>
/dev/nul normaly doesn't exist.  If a normal user tries to do something
like "cat /etc/hosts > /dev/nul", then he is trying to create a file
called  nul in the /dev/ directory, and normal users do not have write
permision to the /dev directory.  You will get the same error if you try
to run "cat /etc/hosts > /bin/nul" as a normal user.  Also, if you have
used /dev/nul instead of /dev/null as root, you now have a normal file
in the /dev directory called nul, and chances are that it is not
accessable by normal users.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to