On Saturday 01 May 2004 10:06 am, Dale Gallagher wrote:

> Hi
>
> > you can use /dev/fd/2?
> > /proc/self/fd/2
>
> None of the suggestions incl. the above work....
>
> Running Slack 9.1 boxes with Kernels 2.4.25 and others with
> 2.6.4
>
> Errors reported are consistent:
>
> ERROR: Can't open /dev/fd/2 in append mode.
> ERROR: Problem with internal logger.
>        Please check the permissions on the /dev/fd/2 file.
>
> $ ls -la /dev/fd/2
> lrwx------ foo users ......... /dev/fd/2 -> /dev/pts/5
>
> No change, even if I change the permissions on these device
> files. Looks like I'm going to have to stick to the patch -
> absolutely no problems, works like a charm. Also used on a
> Debian Linux box (Linux 2.4.18 I think).
>
> Strange that others have no problems????
>
> I'd appreciate a permission listing of those /dev entries
> on the Slack boxes that have it working. Thanks.

I'm not using clamd, however I run Slackware 9.1 (kernel 2.4.25), so in case 
it helps, here are my ownerships/permissions on the relevant device files:

$ ls -al /dev/fd
lrwxrwxrwx    1 root     root           13 Apr 10 12:55 /dev/fd -> 
/proc/self/fd/

$ ls -al /proc/self/fd
total 0
dr-x------    2 punter   users           0 May  1 10:14 ./
dr-xr-xr-x    3 punter   users           0 May  1 10:14 ../
lrwx------    1 punter   users          64 May  1 10:14 0 -> /dev/ttyp0
lrwx------    1 punter   users          64 May  1 10:14 1 -> /dev/ttyp0
lrwx------    1 punter   users          64 May  1 10:14 2 -> /dev/ttyp0
lr-x------    1 punter   users          64 May  1 10:14 3 -> /proc/13784/fd/

$ls -al /dev/ttyp0
crwx-w----    1 punter   tty        3,   0 May  1 10:14 /dev/ttyp0

(This is with me logged in as username punter).

If I do "echo stdout >/dev/fd/1; echo stderr >/dev/fd/2" it works as expected.

Regards,

Antony.

-- 
The truth is rarely pure, and never simple.

 - Oscar Wilde

                                                     Please reply to the list;
                                                           please don't CC me.



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to