create a srw-rw-rw- device ?

create a srw-rw-rw- device ?

Post by Harry M. Fuc » Sun, 04 Aug 1996 04:00:00



i'm having trouble creating the device 'log' (/dev/log). it should have the
permissions srw-rw-rw- , but how do i get the 's'-permission ???

thanx in advance,

                        Harry

 
 
 

create a srw-rw-rw- device ?

Post by B.A.McCau.. » Wed, 07 Aug 1996 04:00:00



Quote:>i'm having trouble creating the device 'log' (/dev/log).

So don't.

Quote:> it should have the
>permissions srw-rw-rw- , but how do i get the 's'-permission ???

If you are not *writing* a program that listens to a named socket then
you need not worry about creating it.  Simply delete any file named
/dev/log and let syslogd create the socket next time it runs.

FYI here is the releavant bit of an strace of syslogd to show how it's
actually done:

unlink("/dev/log")                = 0
socket(PF_UNIX, SOCK_STREAM, , 0) = 0
bind(0, {sun_family=AF_UNIX, sun_path="/dev/log"}, 10) = 0
chmod("/dev/log", 0666)           = 0
listen(0, 5)                      = 0

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/