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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MKDIR<br />

Return Codes<br />

Examples<br />

The default permissions set when a directory is created are 755, representing:<br />

7 User: read, write, and search permission.<br />

5 Group: read and search permission.<br />

5 Other: read and search permission.<br />

STICKY<br />

Specifies that the sticky bit is to be set on for a directory so a user cannot<br />

remove or rename a file in the directory unless one or more of these conditions<br />

are true:<br />

v The user owns the file<br />

v The user owns the directory<br />

v The user has superuser authority<br />

N<strong>OS</strong>TICKY<br />

Specifies that the sticky bit is to be set off in the directory. N<strong>OS</strong>TICKY is the<br />

default.<br />

0 Processing successful.<br />

12 Processing unsuccessful. An error message has been issued.<br />

1. You want to create a directory using an absolute pathname giving read, write,<br />

and search access to the directory owner and no access to the group and other<br />

classes. The new directory name is to be /tmp/bin. The directory /tmp already<br />

exists. You enter:<br />

MKDIR ’/tmp/bin’ MODE(7,0,0)<br />

2. You want to create a new directory under the working directory of your TSO/E<br />

session; therefore you can specify a relative pathname. You want to name the<br />

new directory u2, and to set it up with the default permissions (755). You enter:<br />

MKDIR ’u2’<br />

MKNOD — Create a character special file<br />

Format<br />

Description<br />

Parameters<br />

MKNOD ’pathname’<br />

MAJOR(device_major_number)<br />

MINOR(device_minor_number)<br />

MODE(file_permission_bits)<br />

MKNOD creates a character special file in a file system.<br />

Note: MKNOD can be used only by a superuser.<br />

pathname<br />

Specifies the name of the character special file to be created. The name can be<br />

a relative pathname or an absolute pathname. It must be enclosed in single<br />

quotes. A relative pathname is relative to the working directory of the TSO/E<br />

session (usually the HOME directory). Therefore, you should usually specify an<br />

830 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!