OSDN Git Service

binutils/
[pf3gnuchains/pf3gnuchains4x.git] / winsup / doc / filemodes.sgml
1 <sect1 id="using-filemodes"><title>File permissions</title>
2
3 <para>On FAT or FAT32 filesystems, files are always readable, and Cygwin
4 uses the DOS read-only attribute to determine if they are writable. Files are
5 considered to be executable if the filename ends with .bat, .com or .exe, or
6 if its content starts with #!. Consequently <command>chmod</command> can
7 only affect the "w" mode, it silently ignores actions involving the other
8 modes.  This means that <command>ls -l</command>
9 needs to open and read files. It can thus be relatively slow.</para>
10
11 <para>On NTFS, file permissions are evaluated using the Access Control
12 Lists (ACLs) attached to a file.  This can be switched off by using the
13 "noacl" option to the respective mount point in the
14 <filename>/etc/fstab</filename> or <filename>/etc/fstab.d/$USER</filename>
15 file.  For more information on file permissions, see
16
17 <!-- TODO: Put the file permission stuff from ntsec here??? -->
18
19 <xref linkend="ntsec"></xref>.
20 </para>
21
22 <!-- TODO -->
23
24 <para>On NFS shares, file permissions are exactly the POSIX permissions
25 transmitted from the server using the NFSv3 protocol, if the NFS client
26 is the one from Microsoft's "Services For Unix", or the one built into
27 Windows Vista or later.
28 </para>
29
30 <para>Only the user and group ownership is not necessarily correct.</para>
31
32 </sect1>
33