On Fri, Feb 27, 2015 at 6:33 AM, Jake anderson <[email protected]> wrote: > Hi, > > Is there a place within OMVS to find the ID being defined ? Is there a path > where get the list of ID defined within OMVS ? >
There is not a "file" in z/OS UNIX which is the equivalent of the /etc/passwd or /etc/group files in most other UNIX variants. The information usually kept in these files in z/OS is kept in the OMVS segment in the security system (RACF, TSS, ACF2, ???) for the user (/etc/passwd equivalent) or group (/etc/group equivalent). You can write a REXX program which can access the group information using the "getgrent" SYSCALL as previously mentioned. This gets information about UNIX "groups" ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.59 if you know the GID number, then you can use getgrgid ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.60 if you know the group name (text), then you can use getgrnam ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.61 For users (/etc/passwd) equivalent. There is a similar SYSCALL for users: getpwent ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.71 if you know the RACF id of the user that you want, then there is getpwnam ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.72 if you know the numeric UID, then there is getpwuid ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB6A0/3.73 As best as I can tell, without writing some code, the functions above only return USER or GROUP information for users or groups which have an OMVS segment associated with them. -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
