I am looking for the some document/presentation which will give me an idea about different File and Directory attributes available on Windows, Mac and Linux file system. Also wanted to know Common attributes present across all three Operating systems. I want to cross verify my work.
我正在寻找一些文档/演示文稿,它将让我了解Windows,Mac和Linux文件系统中可用的不同文件和目录属性。还想知道所有三个操作系统中存在的公共属性。我想交叉验证我的工作。
Thanks, Omky
1 个解决方案
#1
1
First, you want to check the File system rather the OS, is mostly a File system feature, not OS, the Operative System can "support" or not all FS features.
首先,您要检查文件系统而不是操作系统,主要是文件系统功能,而不是操作系统,操作系统可以“支持”或不支持所有FS功能。
On Linux and OSX, there is a UNIX standard, you have the common owner/group/other where a File contains a user owner (just a user) and a group owner (a group contains a list of users).
在Linux和OSX上,有一个UNIX标准,您拥有公共所有者/组/其他文件包含用户所有者(仅用户)和组所有者(组包含用户列表)。
With that knowledge, you can set permissions like read/write/executable permissions for the owner of file, the group of file and a "non user non member of the group".
有了这些知识,您可以为文件所有者,文件组和“非用户非组成员”设置读/写/可执行权限等权限。
Example:
I have a file called hello.out and I want to restrict a "modification" for EVERY user, but my user only can execute it and every user can read it. I will set permission 544. the first value, 5 will provide read and execute to owner, the second value, 4 will provide only read to group, and the third value, another 4, will provide only read to any other user.
我有一个名为hello.out的文件,我想限制每个用户的“修改”,但我的用户只能执行它,每个用户都可以读取它。我将设置权限544.第一个值5将为所有者提供读取和执行,第二个值4将仅提供对组的读取,而第三个值(另一个4)将仅向任何其他用户提供读取。
You have extended permissions on some UNIX file systems, on EXT2/3/4 and others, you can set permissions for a specific user (File system extended attributes). Also, you have some "flags" with special features, like provide a root execution with the SUID flag or force exclusivity of files on a directory to owner with the sticky flag.
您对某些UNIX文件系统具有扩展权限,在EXT2 / 3/4和其他系统上,您可以为特定用户设置权限(文件系统扩展属性)。此外,您还有一些具有特殊功能的“标志”,例如使用SUID标志提供根执行,或者使用粘性标记强制将目录上的文件排除到所有者。
More info about UNIX permissions here: http://en.wikipedia.org/wiki/File_system_permissions
有关UNIX权限的更多信息,请访问:http://en.wikipedia.org/wiki/File_system_permissions
On Windows instead, is hard to say, first, you have FAT16/32, there is no permissions with this File system. Using FAT16/32 on Linux can "emulate" a UNIX permission, but is global for all files and will not be stored on File system.
在Windows上,很难说,首先,你有FAT16 / 32,这个文件系统没有权限。在Linux上使用FAT16 / 32可以“模拟”UNIX权限,但对所有文件都是全局的,不会存储在文件系统上。
For File systems like NTFS, is pretty similar to UNIX, but you have a longer list of control for actions on the file or folder, but basically you have read/write/read and execute/list files/modify/full permission.
对于像NTFS这样的文件系统,它与UNIX非常相似,但是你对文件或文件夹上的操作有更长的控制列表,但基本上你有读/写/读和执行/列表文件/修改/完全权限。
For more info, you can find every basic and special attributes here: http://technet.microsoft.com/en-us/library/bb727008.aspx
有关详细信息,您可以在此处找到每个基本和特殊属性:http://technet.microsoft.com/en-us/library/bb727008.aspx
#1
1
First, you want to check the File system rather the OS, is mostly a File system feature, not OS, the Operative System can "support" or not all FS features.
首先,您要检查文件系统而不是操作系统,主要是文件系统功能,而不是操作系统,操作系统可以“支持”或不支持所有FS功能。
On Linux and OSX, there is a UNIX standard, you have the common owner/group/other where a File contains a user owner (just a user) and a group owner (a group contains a list of users).
在Linux和OSX上,有一个UNIX标准,您拥有公共所有者/组/其他文件包含用户所有者(仅用户)和组所有者(组包含用户列表)。
With that knowledge, you can set permissions like read/write/executable permissions for the owner of file, the group of file and a "non user non member of the group".
有了这些知识,您可以为文件所有者,文件组和“非用户非组成员”设置读/写/可执行权限等权限。
Example:
I have a file called hello.out and I want to restrict a "modification" for EVERY user, but my user only can execute it and every user can read it. I will set permission 544. the first value, 5 will provide read and execute to owner, the second value, 4 will provide only read to group, and the third value, another 4, will provide only read to any other user.
我有一个名为hello.out的文件,我想限制每个用户的“修改”,但我的用户只能执行它,每个用户都可以读取它。我将设置权限544.第一个值5将为所有者提供读取和执行,第二个值4将仅提供对组的读取,而第三个值(另一个4)将仅向任何其他用户提供读取。
You have extended permissions on some UNIX file systems, on EXT2/3/4 and others, you can set permissions for a specific user (File system extended attributes). Also, you have some "flags" with special features, like provide a root execution with the SUID flag or force exclusivity of files on a directory to owner with the sticky flag.
您对某些UNIX文件系统具有扩展权限,在EXT2 / 3/4和其他系统上,您可以为特定用户设置权限(文件系统扩展属性)。此外,您还有一些具有特殊功能的“标志”,例如使用SUID标志提供根执行,或者使用粘性标记强制将目录上的文件排除到所有者。
More info about UNIX permissions here: http://en.wikipedia.org/wiki/File_system_permissions
有关UNIX权限的更多信息,请访问:http://en.wikipedia.org/wiki/File_system_permissions
On Windows instead, is hard to say, first, you have FAT16/32, there is no permissions with this File system. Using FAT16/32 on Linux can "emulate" a UNIX permission, but is global for all files and will not be stored on File system.
在Windows上,很难说,首先,你有FAT16 / 32,这个文件系统没有权限。在Linux上使用FAT16 / 32可以“模拟”UNIX权限,但对所有文件都是全局的,不会存储在文件系统上。
For File systems like NTFS, is pretty similar to UNIX, but you have a longer list of control for actions on the file or folder, but basically you have read/write/read and execute/list files/modify/full permission.
对于像NTFS这样的文件系统,它与UNIX非常相似,但是你对文件或文件夹上的操作有更长的控制列表,但基本上你有读/写/读和执行/列表文件/修改/完全权限。
For more info, you can find every basic and special attributes here: http://technet.microsoft.com/en-us/library/bb727008.aspx
有关详细信息,您可以在此处找到每个基本和特殊属性:http://technet.microsoft.com/en-us/library/bb727008.aspx