[news.software.anu-news] normal users cannot post ??

brodie@moocow.mcw.edu (10/11/89)

I cannot seem to get a "normal" user to post ANYTHING.   I am getting
the following error:

Post:  Cannot add item to Newsitems index file

I've checked the file security on NEWS.ITEMS and NEWS.GROUPS.  Both
have RWE access to the world, and so does the directorie(s) they live in.

Any ideas?   (THIS IS V5.9, BYT THE WAY).

-------------------------------------------------------------------------------
Kent C. Brodie - Systems Manager		brodie@mcw.edu
Medical College of Wisconsin			+1 414 778 4500

"Gee, I hope these are the right coordinates..."  -Chief O'Brian; STTNG

gih900@UUNET.UU.NET (Geoff Huston) (10/13/89)

The following report on V5.9 of NEWS:
>I cannot seem to get a "normal" user to post ANYTHING.   I am getting
>the following error:
>
>Post:  Cannot add item to Newsitems index file
>
>I've checked the file security on NEWS.ITEMS and NEWS.GROUPS.  Both
>have RWE access to the world, and so does the directorie(s) they live in.
>
     
This message would indicate that the message-id already exists in the news
database. Check the procedure gen_id in NEWSUTILITY.C and confrim that it is
the same as the following (extracted from the 5.9A sources):
     
char genid[132];
     
char *gen_id()
{
  GRP savegrp;
  int seq;
     
  savegrp = newsgrp;
     
  grprab.rab$l_kbf = c$rfi(0);
  grprab.rab$b_ksz = 4;
  grprab.rab$b_krf = 1;
  grprab.rab$l_rop = RAB$M_WAT;
  grprab.rab$b_rac = RAB$C_KEY;
  _c$cks(sys$get(&grprab));
  seq = ++newsgrp.grp_iavd;
  _c$cks(sys$update(&grprab));
  sprintf(genid,"<%d.%X@%s>",seq,time(0),Node_address);
  s_to_lower(genid);
  return(genid);
}
     
The change to the id generator is to include a time stamp to address the
problem you are describing.
     
Geoff