On 29/11/2012 3:08 AM, Hunkeler Peter (KIUP 4) wrote:
Unfortunately, on z/OS UNIX you typically have more than one userid having uid=0. While not perfect, the different path and other settings could be set from the "uid=0" section of the ENV script I posted. Maybe by sourcing a shared script to help those with "su" authority to set the same values. (The script would be readable my UID=0 only).
/etc/profile would probably be the correct place to setup the different PATH and other settings. However, to execute that (or any other initialization script) I think requires "su -" as we were initially discussing. I don't see the need for the uid 0 stuff to be only readable by UID 0, but you could do that by referencing a secondary script only readable by UID 0.
More than one userid with UID=0 is something I have always felt is a bad design on z/OS. On the Unix side of the fence the UID is the primary identity, so really you have one UID with varying behaviour depending on circumstances.
Regards Andrew Rowley -- [email protected] +61 413 302 386 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
