Neale,

> I am getting strange results from directing output to /dev/null when logged 
> on as a non-root user using /bin/sh.  
> 
>>From a non-root user I see the following:
> $ ls -l /devices/pseudo/[EMAIL PROTECTED]:null  
> crw-rw-rw-   1 root     sys       13,  2 Feb  5 16:24 /devices/pseudo/[EMAIL 
> PROTECTED]:null 
> $ ls -l /dev/null
> lrwxrwxrwx   1 root     root          27 Jan  1  1970 /dev/null -> 
> ../devices/ps
> eudo/[EMAIL PROTECTED]:null  
> $ echo abdef >/dev/null
> /dev/null: cannot create  
> 
>>From root:
> 
> # echo abcdef >/dev/null
> # 
> 
> A trace shows that a creat64("/dev/null") is being called which appears weird 
> to me.

I think that we need to see the full truss output from when the user and from 
when root attempts this :-( Any user can 
redirect to /dev/null without hindrance AFAIK. In certain situations, I guess 
that you might get EROFS somewhere along 
the line; but as you say, if root can do it, then its not that...

I have seen something like this before, but darned if I can remember in what 
circumstances... :-(

Apols... Sean.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to