[Avcheck] Re: real virus test?

Michael Tokarev mjt@tls.msk.ru
Sun, 11 Nov 2001 23:28:58 +0300


Len Conrad wrote:
> 
> >touch avp/null
> 
> uh, sorry
> 
> touch avp/dev/null
> 
> I can't see how to do it with mknod
> 
> NAME
>       mknod - build special file
> 
> SYNOPSIS
>       mknod name [c | b] major minor [owner:group]

 $ ls -l /dev/null
 crw-rw-rw-    1 root     root       1,   3 οΛΤ 24  2000 /dev/null
^^^                                 ^^^  ^^^ 

(1,3 will be different on FreeBSD).  First `c' is a device type,
character device in this case.  1 is major, 3 is minor.  So:

 mknod /var/spool/avp/dev/null c 1 3

(as root, mknod is root only).  And

  chmod 666 /var/spool/avp/dev/null

to match permissions (in fact, permissions aren't relevant here,
kavdaemon should be able to read/write here).
> 

Regards,
 Michael.