× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Comments inline...

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx / CWilt@xxxxxxxxxxxx
> Sent: Tuesday, August 10, 2004 9:22 AM
>
> > -----Original Message-----
> > From: Dan Bale [mailto:dbale@xxxxxxxxxxxxx]
> > Sent: Tuesday, August 10, 2004 9:04 AM
> >
> > Or a security setting perhaps?  Is there something that would
> > change how the system creates the authority on the user msgq
> > when the user profile is created?
> >
> > Although, I have to wonder.  If users' message queues are set
> > to *PUBLIC:*CHANGE, doesn't that mean that anyone can delete
> > messages from
> > someone else's message queue?  That could not be a good thing.
>
> Correct, PUBLIC *CHANGE is too much.  But PUBLIC *USE is probably
> not enough if the public will be sending messages to the queue.
>
> To send a message to it, PUBLIC needs *ADD authority to the data.
>  But *USE only gives *READ and *EXEC.

Yes, as I found out after I removed adopted authority (see below).

> > I created two new *USER test profiles, TEST1 & TEST2, with no
> > special authorities; user *MSGQ set to *PUBLIC:*USE.  I signed
> > on as TEST1, and ran this program:
> >
> >   Pgm
> >    SNDPGMMSG  MSG('this is just a test') +
> >                 TOMSGQ(QUSRSYS/TEST2)
> >   Endpgm
> >
> > It ran fine, and sent the message to TEST2.
>
> I'm surprised at this.  It should not have worked if everything is
> configured as you say.  You might want to double check
> everything.  Perhaps the program used adopted authority?

You nailed it, Charles!  The program is created using all of the default
parameters and has the following attributes:

  User profile . . . . . . . . *OWNER
  Use adopted authority  . . . *YES

Our CRT*PGM commands default to USRPRF(*OWNER).  Hmmm.  I think I need to
look into this a little more.

Thanks for helping me find this!

db


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.