Permissions in Z/OS 2

This question is a continuation of http://www.experts-exchange.com/OS/MainFrame_OS/Q_26529025.html. How do I use the panels in Z/OS to set a RACF profile, or how do I do it from the command shell?
JCW2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

giltjrCommented:
You need to be a bit more specific.  

Exactly what do you want to do?  In the other question you wanted to allow either everybody or a specific person access to a specific file.
JCW2Author Commented:
I need to set permissions for a specific person to access a specific file.
giltjrCommented:
If you have a specific password then you can issue the command:

PERMIT 'DATA.SET.NAME' ID(userid) ACCESS(READ)

where DATA.SET.NAME is the full file name, userid is the userid of who you want to give access to and "READ" is what you want to allow them to do.

If you want to give them write  access, then replace READ with WRITE.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

giltjrCommented:
Ops not WRITE, but UPDATE if you want them to be able to write to the file.
JCW2Author Commented:
I got:

ICH06004I IBM0428.RACF.READ NOT DEFINED TO RACF
giltjrCommented:
Is IBM0428.RACF.READ the name of the file you want to  allow somebody else to read?
giltjrCommented:
You may want to see how this dataset might be protected.

Try issuing the following command:

     listdsd dataset('IBM0438.*')

and post the response.
JCW2Author Commented:
Response: ICH35003I NO RACF DESCRIPTION FOUND FOR IBM0438.*

Yes, IBM0428.RACF.READ is the dataset I'm working with. the user id being worked with is ZUSERID.
giltjrCommented:
O.K, that means there is no RACF profile for IBM0438 yet.

Try:

     ADDDS IBM0428.* UACC(????) GENERIC

Where ????? is what you want the default access to all files that start with the HLQ of IBM0428.  Then try the permit command.

The ADDDS adds a generic data set profile.
JCW2Author Commented:
I don't have "ADDDS;" I recieved

"IKJ56500I COMMAND ADDDS NOT FOUND"
giltjrCommented:
Ops, should be ADDSD
JCW2Author Commented:
I used that, and used permit, and the permit command didn't work.

I used: PERMIT 'ibm0428.racf.read' ID(ZUSERID) ACCESS(read).
giltjrCommented:
Did you do it AFTER you did the ADDSD?
JCW2Author Commented:
Yes. I just made sure, and tried to get the input in in a correct way.
giltjrCommented:
Did the ADDSD command work?
JCW2Author Commented:
Yes.
giltjrCommented:
Does the data set ibm0428.racf.read actually exist?
giltjrCommented:
O.K. did some testing on my system.

     addsd dataset('ibm0428.racf.read') uacc(none) generic
     permit 'ibm0428.racf.read' ID(ZUSERID) ACCESS(read)

will work.  To get rid of the profile (and thus the permit)

     deldsd dataset('ibm0428.racf.read') generic

General RACF commands can be found here:

http://utkvm1.utk.edu/racf.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JCW2Author Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mainframe OS

From novice to tech pro — start learning today.