Thread View: news.software.nn
2 messages
2 total messages
Started by Mathew BM LIM
Thu, 09 Jan 1992 05:21
Using AUTHORIZE to restrict posting
Author: Mathew BM LIM
Date: Thu, 09 Jan 1992 05:21
Date: Thu, 09 Jan 1992 05:21
24 lines
1768 bytes
1768 bytes
Hi, I have just installed nn6.4.16 on a SYSV4 machine. I am not using the NNTP options as I just want to use news to organise our system messages, announcements, etc. to our users. What we want to do is use the AUTHORIZE options to restrict users' ability to post articles. I compiled in the AUTHORIZE and ACCOUNTING flags and made #define DEFAULT_POLICY ALL_HOURS + NO_POST /* all time but no posting */ in account.c. This works fine when someone tries to post using nnpost, but the :post command from within nn itself does not check nnacct before posting. Now, I could hack nn to put the check in (menu.c and more.c are the only places needing this I think), but would much rather not re-invent the wheel. So if anyone has already done this I would appreciate it if you send me a patch (and send Kim a patch as well). Thanks ... -- Mathew Lim, Unix Systems Programmer, ANU Supercomputer Facility, Australian National University, GPO Box 4, Canberra City, ACT, Australia 2601. Telephone : +61 6 249 2750 | ACSnet : Mathew.BM.Lim@anu.oz Fax : +61 6 247 3425 | Internet : Mathew.BM.Lim@anu.edu.au
Re: Using AUTHORIZE to restrict posting
Author: Gary Morris
Date: Thu, 09 Jan 1992 16:59
Date: Thu, 09 Jan 1992 16:59
23 lines
1637 bytes
1637 bytes
In <mbl900.694934475@anusf.anu.edu.au> mbl900@anu.oz.au (Mathew BM LIM) writes: > What we want to do is use the AUTHORIZE options to restrict >users' ability to post articles. I compiled in the AUTHORIZE and ACCOUNTING >flags and made >#define DEFAULT_POLICY ALL_HOURS + NO_POST /* all time but no posting */ >in account.c. This works fine when someone tries to post using nnpost, but >the :post command from within nn itself does not check nnacct before >posting. That's a good start but there were several places where this policy isn't checked. I have a patch for this that I sent to Kim in May 1991 but never got a response. It works fine for us here. If there is general interest I can post it here or mail it to anyone (a copy is on the way to you Mathew). It's not too big, 160 lines total for the context diffs. --GaryM -- Gary Morris Internet: garym@telesoft.com KK6YB UUCP: ucsd!telesoft!garym TeleSoft, San Diego, CA Phone: +1 619-457-2700
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads