Changes the password for a specific server/user entry stored in the /etc/cifs_fs/cifscred file.
The chcifscred command takes a server and user name as input. If this input has credentials listed in /etc/cifs_fs/cifscred, the command line prompts for a password to replace the existing password. The password is stored in an encrypted format.
| Item | Description |
|---|---|
| -h RemoteHost | Specifies the name of the remote host (CIFS server). This can be provided as a host name, an IP address, or as a fully qualified domain name. |
| -p password | Specifies the new password for the specified user on the specified remote host. |
| -u user | Specifies the user name whose password is changing for access to the specified host. |
| Item | Description |
|---|---|
| 0 | The command completed successfully. |
| >0 | An error occurred. |
chcifscred -h server1 -u user1
/usr/sbin/chcifscred
| Item | Description |
|---|---|
| /etc/cifs_fs/cifscred | Stores the CIFS credentials. |