Alan and Rory,
I've never had to use adopted authority, and I may have gotten lost in the thread. Got a question, anyway.
If USERA is running PGMA in LIBA (with adopted authority suitable for the file), and the file/table exists in LIBB (to which USERA is *Exclude), would the program be able to access the file? Would a USROPN or a system-open make any difference?
Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
I don't feel we did wrong in taking this great country away from [the Indians]. There were great numbers of people who needed new land and the Indians were selfishly trying to keep it for themselves. - John Wayne
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Tuesday, April 27, 2010 2:22 PM
To: RPG programming on the IBM i / System i
Cc: RPG programming on the IBM i / System i; rpg400-l-bounces@xxxxxxxxxxxx
Subject: Re: Edit Object Authority for Library, Program, File and User Security.....
My understanding was that the addlible was in the cl program and the adopted owner authority would come into play If the addlible was outside of the CL program, then yes you are correct
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
Rory Hewitt
<rory.hewitt@gmai
l.com> To
Sent by: "RPG programming on the IBM i /
rpg400-l-bounces@ System i" <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
04/27/2010 03:10 Re: Edit Object Authority for
PM Library, Program, File and User
Security.....
Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.com>
Alan,
If a user has *EXCLUDE authority to a library, then they can't even add it to their library list. Personally, I think this is more likely to lead to problems elsewhere (an ADDLIBLE command in a CL program failing, for instance). Having *USE authority to the *LIB itself shouldn't be a problem, as long as the files in the library are suitably controlled, authority-wise.
That's just me, though.
Rory
On Tue, Apr 27, 2010 at 11:36 AM, Alan Shore <AlanShore@xxxxxxxx> wrote:
Lets say the USERS user profile is FREDBLOGGS
The object owners user profile is ONEANDONLY
Then as far as the library authority is concerned FREDBLOGGS is
*EXCLUDE ONEANDONLY is *USE
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.