Linux command
cifs.idmap 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display help information
cifs.idmap --help
Display version information
cifs.idmap --version
说明
cifs.idmap is a userspace helper program for the Linux CIFS client filesystem. It translates Windows Security Identifiers (SIDs) to Linux UIDs/GIDs and vice versa, ensuring correct file ownership and permissions when mounting CIFS/SMB shares. This program is not intended to be run directly from the command line. The kernel calls it via request-key(8) when a share is mounted with the cifsacl mount option. The utility relies on a plugin at /etc/cifs-utils/idmap-plugin to perform actual ID mapping. Supported backends include sfu, rid, nss, and tdb, often using services like sssd or winbind.
参数
- -h, --help
- Print usage message and exit
- -t, --timeout _seconds_
- Set key expiration timer in seconds (default: 600). Use 0 for no expiration
- -v, --version
- Print version number and exit
- key_id
- The key identifier provided by the kernel upcall
FAQ
What is the cifs.idmap command used for?
cifs.idmap is a userspace helper program for the Linux CIFS client filesystem. It translates Windows Security Identifiers (SIDs) to Linux UIDs/GIDs and vice versa, ensuring correct file ownership and permissions when mounting CIFS/SMB shares. This program is not intended to be run directly from the command line. The kernel calls it via request-key(8) when a share is mounted with the cifsacl mount option. The utility relies on a plugin at /etc/cifs-utils/idmap-plugin to perform actual ID mapping. Supported backends include sfu, rid, nss, and tdb, often using services like sssd or winbind.
How do I run a basic cifs.idmap example?
Run `cifs.idmap --help` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -h, --help do in cifs.idmap?
Print usage message and exit