Display information about what types of users are connected over SMB sessions
You can display information about what type of users are connected over SMB sessions. This can help you ensure that only the appropriate type of user is connecting over SMB sessions on the storage virtual machine (SVM).
The following types of users can connect over SMB sessions:
-
local-user
Authenticated as a local CIFS user
-
domain-user
Authenticated as a domain user (either from the CIFS server's home domain or a trusted domain)
-
guest-user
Authenticated as a guest user
-
anonymous-user
Authenticated as an anonymous or null user
-
Determine what type of user is connected over an SMB session:
vserver cifs session show -vserver vserver_name -windows-user windows_user_name -fields windows-user,address,lif-address,user-type
If you want to display user type information for established sessions… Enter the following command… For all sessions with a specified user type
vserver cifs session show -vserver vserver_name -user-type {local-user|domain-user|guest-user|anonymous-user}
For a specific user
vserver cifs session show -vserver vserver_name -windows-user windows_user_name -fields windows-user,address,lif-address,user-type
The following command displays session information on the user type for sessions on SVM vs1 established by user "` iepubs\user1`":
cluster1::> vserver cifs session show -vserver pub1 -windows-user iepubs\user1 -fields windows-user,address,lif-address,user-type node vserver session-id connection-id lif-address address windows-user user-type --------- ------- ---------- ------------- ------------ ------------- -------------------- ----------- pub1node1 pub1 1 3439441860 10.0.0.1 10.1.1.1 IEPUBS\user1 domain-user