adfs.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Mount options for ADFS
  2. ----------------------
  3. uid=nnn All files in the partition will be owned by
  4. user id nnn. Default 0 (root).
  5. gid=nnn All files in the partition will be in group
  6. nnn. Default 0 (root).
  7. ownmask=nnn The permission mask for ADFS 'owner' permissions
  8. will be nnn. Default 0700.
  9. othmask=nnn The permission mask for ADFS 'other' permissions
  10. will be nnn. Default 0077.
  11. Mapping of ADFS permissions to Linux permissions
  12. ------------------------------------------------
  13. ADFS permissions consist of the following:
  14. Owner read
  15. Owner write
  16. Other read
  17. Other write
  18. (In older versions, an 'execute' permission did exist, but this
  19. does not hold the same meaning as the Linux 'execute' permission
  20. and is now obsolete).
  21. The mapping is performed as follows:
  22. Owner read -> -r--r--r--
  23. Owner write -> --w--w---w
  24. Owner read and filetype UnixExec -> ---x--x--x
  25. These are then masked by ownmask, eg 700 -> -rwx------
  26. Possible owner mode permissions -> -rwx------
  27. Other read -> -r--r--r--
  28. Other write -> --w--w--w-
  29. Other read and filetype UnixExec -> ---x--x--x
  30. These are then masked by othmask, eg 077 -> ----rwxrwx
  31. Possible other mode permissions -> ----rwxrwx
  32. Hence, with the default masks, if a file is owner read/write, and
  33. not a UnixExec filetype, then the permissions will be:
  34. -rw-------
  35. However, if the masks were ownmask=0770,othmask=0007, then this would
  36. be modified to:
  37. -rw-rw----
  38. There is no restriction on what you can do with these masks. You may
  39. wish that either read bits give read access to the file for all, but
  40. keep the default write protection (ownmask=0755,othmask=0577):
  41. -rw-r--r--
  42. You can therefore tailor the permission translation to whatever you
  43. desire the permissions should be under Linux.