chcifscred Command
Purpose
Changes the password for a specific server/user entry stored in the /etc/cifs_fs/cifscred file.
Syntax
Description
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.
Flags
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. |
Exit Status
Item | Description |
---|---|
0 | The command completed successfully. |
>0 | An error occurred. |
Examples
- To change the password stored for
user1
to mount onserver1
, withserver1
anduser1
credentials already residing in /etc/cifs_fs/cifscred, enter:chcifscred -h server1 -u user1
Location
/usr/sbin/chcifscred
Files
Item | Description |
---|---|
/etc/cifs_fs/cifscred | Stores the CIFS credentials. |