|
NAMEumask - set or get the file creation mode maskSYNOPSISumask [OPTIONS] [MASK] DESCRIPTIONumask displays and manipulates the "umask", or file creation mode mask, which is used to restrict the default access to files.The umask may be expressed either as an octal number, which represents the rights that will be removed by default, or symbolically, which represents the only rights that will be granted by default. Access rights are explained in the manual page for the chmod(1) program. With no parameters, the current file creation mode mask is printed as an octal number.
If a numeric mask is specified as a parameter, the current shell's umask will be set to that value, and the rights specified by that mask will be removed from new files and directories by default. If a symbolic mask is specified, the desired permission bits, and not the inverse, should be specified. A symbolic mask is a comma separated list of rights. Each right consists of three parts:
If the first and second parts are skipped, they are assumed to be a and =, respectively. As an example, r,u+w means all users should have read access and the file owner should also have write access. Note that symbolic masks currently do not work as intended. EXAMPLEumask 177 or umask u=rw sets the file creation mask to read and write for the owner and no permissions at all for any other users.COPYRIGHT2021, fish-shell developers
Visit the GSP FreeBSD Man Page Interface. |