Setting the default umask

What is umask?

The umask option for the pcnfsd daemon controls the permissions that the filer assigns to directories and files created by (PC)NFS clients.

How umask works

The maximum permission for a user, group, or everyone else is 6, which enables the appropriate user to read files, write files, or have no access to files. The value specified in the umask option is subtracted from 0666 to determine the permissions assigned to a file.

Example

The following example enables a file's owner to read and write a file, but denies access to the file by anyone else:

066

The umask format

The format of umask consists of three integers (nnn) that have values of 0, 2, 4, or 6. The integers specify permissions in the following manner:

Values of umask

The following table shows the umask integers that you can specify in any of the umask integer positions (nnn).

umask integer Meaning
0 Creates files with permissions that enable users, groups, or everyone else to read from and write to files.
2 Creates files with permissions that enable users, groups, or everyone else to write to files.
4 Creates files with permissions that enable users, groups, or everyone else to read from files.
6 Creates files with permissions that prevent users, groups, or everyone else to read from or write to files.

The default umask

The filer uses a default umask of 022, which

Syntax

The syntax for the umask option is as follows:

options pcnfsd.umask nnn

nnn is the umask.


Copyright © 1999, Network Appliance, Inc. All rights reserved.

Part No. 210-02334
File: nfs13.htm
Last updated: 04/26/99 08:11:30