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.

mv<br />

Portability<br />

Related Information<br />

cp, cpio, rm<br />

name and the file is read-only. If you really want to write over the existing<br />

file, type y and press . If you do not want to write over the existing<br />

file, type n and press .<br />

source name and target name are identical<br />

The source and the target are actually the same file (for example, because<br />

of links). In this case, mv does nothing.<br />

unreadable directory name<br />

mv cannot read the specified directory—for example, because you do not<br />

have appropriate permissions.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –R and –r options are extensions of the P<strong>OS</strong>IX standard.<br />

newgrp — Change to a new group<br />

Format<br />

Description<br />

newgrp [–l] [group]<br />

newgrp [–] [group]<br />

tcsh shell: newgrp [-] group<br />

newgrp lets you change to a new group. You stay logged in and your working<br />

directory does not change, but access permissions are calculated according to your<br />

new real and effective group IDs. If an error occurs, your session may be ended,<br />

and you must log in again.<br />

After the group IDs are changed, a new shell is initialized within the existing<br />

process, effectively overlaying the current shell from which newgrp was invoked.<br />

The new shell is determined from the initial program value of the OMVS segment of<br />

your user profile.<br />

newgrp does not change the value of exported shell variables, and all others are<br />

either set to their default or are unset.<br />

If you did not specify any arguments on the command line, newgrp changes to the<br />

default group specified for your user ID in the system user database. It also sets<br />

the list of supplementary groups to that set in the systems group database.<br />

If you specify a group, newgrp changes your real and effective group ID to that<br />

group. You are permitted to change to that group only if you are a member of that<br />

group, as specified in the system group database.<br />

group can be a group name from the security facility group database, or it can be a<br />

numeric group ID. If a numeric group exists as a group name in the group data<br />

base, the group ID number associated with that group is used.<br />

450 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!