rmsmbcred Command
Purpose
Removes the Server Message Block (SMB) client file system credentials that are stored in the /etc/smbcred file for the specified server and user entry.
Syntax
rmsmbcred -s server_name -u user_name
Description
You must specify the server name and the username in the rmsmbcred command. If the specified server-user entry is found in the credentials that are listed in the /etc/smbcred file, the credential entry is removed. After the credential is removed, if you want to mount the file system on the specified server by the specified user, you must manually specify the password.
Flags
- -s server_name
- Specifies the name of the remote host, which is an SMB server. The server_name parameter can be provided as a hostname, an IP address, or a fully qualified domain name.
- -u user_name
- Specifies the username whose credentials for the specified server must be removed from the /etc/smbcred file.
Exit status
- 0
- The command completed successfully.
- >0
- An error occurred.
Examples
- To remove the credential that is stored in /etc/smbcred file for
user1
to mount the SMB client file system on thexxx.in.ibm.com
server, enter the following command:rmsmbcred -s xxx.in.ibm.com -u user1
Location
/usr/sbin/rmsmbcred
Files
- /etc/smbcred
- Stores the SMB client file system credentials.