Creating News Groups in INN

Материал из RSU WiKi

Перейти к: навигация, поиск

Creating News Groups

Active news groups are listed in the ~news/db/active file (could be located in /var/lib/news). Editing this file by hand is not recommended, because of the rather strict syntax.

You can use ctlinnd to create news groups, but only when INN is running. INN will not run unless there are news groups in the active file.

To solve this chicken and egg problem, create an active file with two mandatory groups:

 control 0000000000 0000000001 y
 junk 0000000000 0000000001 y

Also create active.times in the same directory:

touch active.times

Make sure this file is owned by user news and group news.

If INN was installed from a DEB or RPM packet, there may already be default active and active.times files.

Now when you start INN, you can add newsgroups with the ctlinnd command:

ctlinnd newgroup <group> <flags> <creator>

where:

<group>

   The name of the newsgroup. If the newsgroup already exists, this command will act as the changegroup command, changing the flags and/or the creator. 

<flags>

   Possible plags include:
   y 	Local posting is allowed
   n 	No local posting is allowed, only remote ones
   m 	The group is moderated and all postings must be approved
   j 	Articles in this group are not kept, but only passed on
   x 	Articles cannot be posted to this newsgroup

<creator>

   The name of the person creating the newsgroup. Can be omitted and will default to the newsmaster. 

If you want to create a local group that can be used for testing purposes, you would issue the following command:

ctlinnd newgroup local.testing y ben

This will create a newsgroup called “local.testing” which accepts local posting.

Full article can be found here: http://snow.nl/dist/htmlc/ch06s04.html

Всякое

Как быстро добавить группу в SLES 9:

su news
/usr/lib/news/bin/ctlinnd newgroup fido7.su.hardw.grounding m
exit
rcinn restart