June 30, 2007
Are permission modes of file_umask and dir_umask the same? (Unix)?
Why does Unix apply the same umask differently to file and directory?
- (Red Hat Linux)
- Because to enter a directory, you need execute permission - but to read a file, you just need read permission.
The standard umask (022) gives rw-r–r– for files and rwxr-xr-x for directories.
Check the man page for chmod and umask (section 2 on my system) for more details.
Tags: linux file system, linux game























