您可以禁用写权限位,例如要防止删除文件。
You might disable your write bit, for example, to prevent the file from being deleted.
现在,ACL 已定义成赋予根用户读、写和执行权限,但没有删除权限位(即 “d”)。
Now, the ACL is defined to give the root user read, write, and execute permissions, but not the deletion (that is, the "d") permission bit.
在最近的一些Linux机器上,使用普通的旧 /bin/cp复制的文件都因为权限位不正确而终止使用。
On some recent Linux machines, files copied with plain old /bin/cp were ending up with incorrect permission bits.
当对文件的元信息进行操作时(比如修改它的所有者、对文件进行统计,或者修改它的权限位),首先要打开该文件,然后对打开的文件进行操作。
When performing operations on a file's meta-information, such as changing its owner, stat-ing the file, or changing its permission bits, first open the file and then use the operations on open files.
当对文件的元信息进行操作时(比如修改它的所有者、对文件进行统计,或者修改它的权限位),首先要打开该文件,然后对打开的文件进行操作。
When performing operations on a file's meta-information, such as changing its owner, stat-ing the file, or changing its permission bits, first open the file and then use the operations on open files.
应用推荐