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?

  1. (Red Hat Linux)
  2. 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: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,