16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Values<br />

Portability<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Error setting termios attributes<br />

v Unknown mode<br />

v Missing number after option<br />

v Argument out of range<br />

v Bad number after option<br />

v Internal error<br />

v Error reading termios attributes<br />

v Missing character after option<br />

v Badly formed argument option character<br />

v Missing speed after ispeed or ospeed<br />

v Bad speed argument<br />

P<strong>OS</strong>IX.2, <strong>UNIX</strong> <strong>System</strong> V.<br />

su — Change the user ID associated with a session<br />

Format<br />

Description<br />

su [–] [–s][userid [arg ...]]<br />

su starts a new shell and lets you operate in it with the privileges of a superuser or<br />

another user.<br />

If you do not specify a user ID, su changes your authorization to that of the<br />

superuser. If you specify a user ID, su changes your authorization to that of the<br />

specified user ID. The new environment is built and then a new session is initiated.<br />

The new session is run as a child shell of the shell issuing the su command.<br />

Any arguments specified by arg are passed to the child shell, so must be valid<br />

invocation flags or arguments accepted by the child shell.<br />

su performs these functions:<br />

v Obtains your user profile information. After validating that you have an OMVS<br />

segment in the user profile, the OMVS segment information is obtained.<br />

v Verifies authorization. If a user ID is not specified, you must have the<br />

appropriate authorization to obtain superuser authority. You must be permitted to<br />

the BPX.SUPERUSER resource in the FACILITY class. For more information,<br />

see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Planning.<br />

stty<br />

If a user ID is specified, and you do not have read access to the SURROGAT<br />

class profile, BPX.SRV.uuuuuuuu (where uuuuuuuu is the MVS userid associated<br />

with the target UID), you must enter the target user’s password when prompted.<br />

If a user ID is specified, and you have read access to the SURROGAT class<br />

profile for the target user, you can use the –s option, or press Enter at the<br />

password. For more information see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Planning.<br />

Chapter 2. Shell command descriptions 607

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!