lssmbcred Command
Purpose
Lists the credential entries that are stored in the /etc/smbcred file for the specified server and username.
Syntax
lssmbcred [-s server_name] [-u user_name]
Description
When you run the lssmbcred command without any flags, the lssmbcred command lists all of the credential entries that have password for the username in the /etc/smbcred file. If you specify the -s or -u flag, the lssmbcred command displays credentials that match the specified server name or the specified username.
Flags
- -s server_name
- Specifies the remote host, which is the Server Message Block (SMB) server for which the credentials are displayed if a matching credential entry is found in the /etc/smbcred file.
- -u user_name
- Specifies the username for which the credentials are displayed if a matching credential entry is found in the /etc/smbcred file.
Exit status
- 0
- The command completed successfully.
- >0
- An error occurred.
Example
To list all the credential entries on the
xxx.in.ibm.com
server, enter the
following command:lssmbcred -s xxx.in.ibm.com
An output similar to the
following example is
displayed:server: xxx.in.ibm.com user: user1
server: xxx.in.ibm.com user: user2
Location
/usr/sbin/lssmbcred
Files
- /etc/smbcred
- Stores the credentials of the SMB client file system.