Article 164237 of comp.os.vms:
In article <009AF0B3.10FA3530.7@ccastat.demon.co.uk>, chris@ccagroup.co.uk writes:
> 
[snip]
> I'd like to make it completely silent, ie set the diswelcome, disreport, and 
> dismail UAF flags (for this login only).
[snip]

From a lgi$igr_chkrestrict routine when you've determined that this is the
login that you want to affect... try this...

/*+ begin */
  unsigned long krnl_args = 0;
  int update_ctl_creprc_flags();

  sys$cmkrnl(update_ctl_creprc_flags, krnl_args); /* set the bit */
/*+  end */

where the kernel mode routine is...

/*+ begin */
int update_ctl_creprc_flags()
{
#ifdef __DECC
#pragma message disable (globalext)
#endif
  globalref short *CTL$GL_CREPRC_FLAGS;
#ifdef __DECC
#pragma message enable (globalext)
#endif
/*+
 * This will have a few side effects... for the most part, the need for this
 * flag has passed. The identify and authenticate routines will have already
 * been executed by LOGINOUT. However; we now won't be offered the option of
 * connecting to disconnected process, won't get all LOGINOUT's announcments,
 * like newmail, login fails and last login times, won't be controlled by
 * SYSUAF's hourly login restrictions, won't be stopped by an interactive
 * job limit set to 0, and we might update SYSUAF's last-noninteractive
 * login time...
 *-
*/
  CTL$GL_CREPRC_FLAGS -= PRC$M_INTER;	/* we know that we're interactive */
  return(SS$_NORMAL);
}
/*- end */


you can read the source for loginout if you want to see all the details.
I use this to allow certain users who don't possess the oper privilege,
but do hold a certain rightslist identifier, the ability to log in on a
node in a cluster whose login interactive limit is always set to 0. This
convinces loginout's interactive check that the login isn't interactive
(with the above noted side effects) but, if I recall correctly, VMS sees
the process as interactive. The side effects are what will be of interest
to you. Note, this must occur in, or prior to, the lgi$igr_chkrestrict;
else, it's too late, the messages will have been broadcast.

- Jim


