NNCP uses following files/directories you should be aware of:
It also contains temporary files (in tmp/ directory), possibly left alone, if some of the commands failed and prematurely exited and that should be cleaned from time to time.
Partly transferred files are stored with .part suffix. And possibly they also require cleanup if they are completely lost.
Also it can contain .seen files, that should be cleaned too from time to time.
All of that cleaning tasks can be done with nncp-rm utility.
If you want to share single spool directory with multiple grouped
Unix users, then you can setgid
it and assure that umask
is group friendly. For convenience you can set umask
globally for invoked NNCP commands in the configuration file. For
example:
$ chgrp nncp /usr/local/etc/nncp.hjson /var/spool/nncp $ chmod g+r /usr/local/etc/nncp.hjson $ chmod g+rwxs /var/spool/nncp $ echo 'umask: "007"' >> /usr/local/etc/nncp.hjson
Example newsyslog’s entry:
/var/spool/nncp/log 644 7 100 * BCYN
*/1 * * * * nncp-reass -all -noprogress
For example you can use daemontools for that task to run them under probably existing uucp user:
# mkdir -p /var/service/nncp-toss/log # chmod 755 /var/service/nncp-toss/log /var/service/nncp-toss # cd /var/service/nncp-toss # cat > run_ <<EOF #!/bin/sh -e exec 2>&1 exec setuidgid uucp /usr/local/bin/nncp-toss -cycle 10 EOF # chmod 755 run_ # cat > log/run_ <<EOF #!/bin/sh -e exec setuidgid uucp multilog t ./main EOF # chmod 755 log/run_ # mv log/run_ log/run ; mv run_ run
uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -quiet -inetd