Linux command
cifscreds 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Add credentials for a CIFS server
cifscreds add [server_hostname]
Add credentials with a specific username
cifscreds add -u [username] [server_hostname]
Add credentials for a domain
cifscreds add -d [domain_name]
Update existing credentials
cifscreds update [server_hostname]
Clear credentials for a specific host
cifscreds clear [server_hostname]
Clear all CIFS credentials from the kernel
cifscreds clearall
说明
cifscreds manages NTLM credentials in the kernel keyring for CIFS multiuser mounts. When a CIFS filesystem is mounted with the multiuser option without Kerberos authentication, this utility provides per-user credentials to the kernel. Credentials are stored securely in the session keyring rather than in plain-text files, providing better security for sensitive authentication information.
参数
- add
- Add credentials for connecting to a server or domain
- clear
- Remove credentials for a specific host or domain
- clearall
- Remove all CIFS credentials from the kernel
- update
- Update stored credentials with new username/password
- -d, --domain
- Treat the argument as an NT domain name instead of hostname
- -u, --username _user_
- Use specified username instead of current Unix username
FAQ
What is the cifscreds command used for?
cifscreds manages NTLM credentials in the kernel keyring for CIFS multiuser mounts. When a CIFS filesystem is mounted with the multiuser option without Kerberos authentication, this utility provides per-user credentials to the kernel. Credentials are stored securely in the session keyring rather than in plain-text files, providing better security for sensitive authentication information.
How do I run a basic cifscreds example?
Run `cifscreds add [server_hostname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does add do in cifscreds?
Add credentials for connecting to a server or domain