home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / info / ntkb / ntkb.exe / Q104 / 9 / 24.TXT < prev    next >
Encoding:
Text File  |  1993-10-07  |  3.8 KB  |  94 lines

  1. DOCUMENT:Q104924  06-OCT-1993  [W_NT]
  2. TITLE   :Directory Permissions with POSIX Applications Under Windows NT
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. ----------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. ----------------------------------------------------------------------
  14.  
  15. SUMMARY
  16. =======
  17.  
  18. In Windows NT, if you are using a POSIX application, you must have
  19. Execute (X) permissions to a directory in order for the POSIX
  20. application to be able to view that directory's files. Also, for the
  21. best performance of POSIX applications, it is recommended that the
  22. Bypass Traverse Checking Right option be enabled.
  23.  
  24. MORE INFORMATION
  25. ================
  26.  
  27. Under POSIX, there are three types of permissions and three groups are
  28. assigned to these permissions. The permissions are R (read) W (write)
  29. and X (execute). The three groups are Owner, Group, and Everyone. The
  30. permissions are displayed in the following manner for files and
  31. directories respectively (using the UNIX directory command, ls -l):
  32.  
  33.    -rwxrwxrwx    1 Everyone Everyone    35328 Jul  8 14:25 AR.EXE
  34.  
  35.    drwxrwxrwx    1 Everyone Everyone    0     Aug 27 13:45 DEFAULT
  36.  
  37.    NOTE: The first bit is left blank for files and is set to "d" for
  38.    directories.
  39.  
  40. The preceding 9 bits (after the directory bit) are used to set read
  41. write and execute permissions for the three groups as follows:
  42.  
  43.    - rwx  rwx  rwx
  44.      |__| |__| |__|
  45.       |    |    |
  46.    Owner Group Everyone
  47.  
  48. The Execute bit (X) is required to be set for the group the user
  49. belongs to in order for that group's users to have access to a
  50. directory. The reason execute permissions are required on directories
  51. relates to the design of UNIX file systems. The Execute permission is
  52. set to allow users to view the contents of a directory. Because the
  53. UNIX file system knows that directories are not executable, it uses
  54. the Execute bit only for allowing access inside the directory. This is
  55. nothing more than a definition; it is a way of stating that users are
  56. allowed to enter directories.
  57.  
  58. If POSIX applications are running slowly, verify that the user or
  59. their group has the Bypass Traverse Checking Right with the User
  60. Manager. By default, everyone has the right to Bypass Traverse
  61. Checking.
  62.  
  63. POSIX on Windows NT uses execute permissions the same way UNIX systems
  64. do, as does Microsoft Win32, on Windows NT. The Bypass Traverse
  65. Checking privilege means that permissions will only be checked on the
  66. last component of a path and not on the directory names preceding it.
  67. This feature is useful when performance is more important than
  68. security. If additional security is desired, this right can be
  69. removed.
  70.  
  71. For additional information on POSIX support in Windows NT, query on
  72. the following word in the Microsoft Knowledge Base:
  73.  
  74.    posix
  75.  
  76. Additional reference words: 3.10 slow
  77. KBCategory:
  78. KBSubcategory: posixap
  79.  
  80. =============================================================================
  81.  
  82. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  83. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  84. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  85. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  86. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  87. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  88. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  89. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  90. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  91. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  92. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  93.  
  94. Copyright Microsoft Corporation 1993.