* Gustav Schaffter [Mon, Feb 12, 2001 at 08:07:04PM +0100]:
> Hi,
>
> When one of my users try to:
>
> any_command | /dev/nul
/dev/nul on a redhat system? Which package does it belong to? Did
you symlink it to /dev/null or mknod it yourself?
>
> 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 doubt it. That command would results in a broken pipe unless
/dev/null is an executable program.
>
> 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
>
First, teach your users proper redirection:
some_command < /dev/null (for redirecting standard input)
some_command > /dev/null (for redirecting standard output)
Then, if you really need a /dev/nul file, create it (as root):
# mknod /dev/nul c 1 3
# chmod 666 /dev/nul
That would allow users to use either /dev/nul or /dev/null, but why?
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list