1. /proc/sys/fs/overflowuid

2. /proc/sys/fs/overflowgid

[root@localhost /proc/sys/fs]$ cat overflowuid 
65534

[root@localhost /proc/sys/fs]$ cat overflowgid 
65534

3. 理解分析

Linux系统的用户ID是32位的,但是有些文件系统支持的UID/GID是16位的。因此如果在Linux系统上,用户的ID超过了65535的话,该用户创建的文件不能保存到文件系统上。为了兼容这种16位uid的文件系统,Linux会将UID操作65535的用户的UID/GID转换成一个固定的值,这样就可以正常的报存文件了。默认这个值是16位的UID/GID 65534。

4. 翻译

这个值允许你去修改固定的UID和GID。默认值时65534.一些文件系统只支持16位的UIDs和GIDs,尽管Linux的UIDs和GIDs是32位的。当一个文件系统以可写的方式挂载使用时,任何UID和GID超过65535时会自动被转换为一个固定值,这个固定值保存在这个文件中。


These files allow you to change the value of the fixed UID and GID. The default is 65534. Some file systems only support 16-bit UIDs and GIDs, although in Linux UIDs and GIDs are 32 bits. When one of these file systems is mounted with writes enabled, any UID or GID that would exceed 65535 is translated to the overflow value before being written to disk.

http://www.cnblogs.com/tolimit/p/5065761.html

Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2023-06-19 08:59:50

results matching ""

    No results matching ""