start of change

lssmbcred Command

Purpose

Lists the server and user credential entries that are stored in the /etc/smbcred file.

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 server and user credential entries that have passwords stored 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 username.

Flags

-s server_name
Displays the credentials that match the specified remote host, which is an SMB server.
-u user_name
Displays the credentials that match the specified username.

Exit status

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

Examples

  • 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 SMB client file system credentials.
end of change