>We have serveral OMVS userids of 0.  Is their any way to control which
>of those gets utilized 
>when an "su -" command is entered?  I would like it to be the "omvs"
>userid each time.  

Why do you do a "su -" instead of simply "su"?

I consider the dash option to be useful only when switching to another
identity as in "su - another.userid". You're changing the MVS userid as
well as the UNIX uid, so it is sensible to also setup the shell
environment to lokk as if you had logged in with that userid.

A "su" without a userid merely starts a new subshell with euid=0; you
still are who you were before the "su" MVS-wise. It probably would have
been better to reject the dash option in this case.

--
Peter Hunkeler

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to