rmcifscred Command

Purpose

Removes the CIFS credentials stored in the /etc/cifs_fs/cifscred file for the specified server and user entry.

Syntax

rmcifscred -h RemoteHost -u user

Description

The rmcifscred command takes a server and user name as input. If this input has credentials listed in /etc/cifs_fs/cifscred, the credentials are removed. Subsequent mounting to the specified server by the specified user requires manually inputting the password.

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.
-u user Specifies the user name whose credentials for the specified server are to be removed from the cifscred file.

Exit Status

Item Description
0 The command completed successfully.
>0 An error occurred.

Examples

  1. To remove the credentials stored in /etc/cifs_fs/cifscred for user1 to mount on server1, enter:
    rmcifscred -h server1 -u user1 

Location

/usr/sbin/rmcifscred

Files

Item Description
/etc/cifs_fs/cifscred Stores the CIFS credentials.