You can display information about connected users and the number of shares and open files for each user. You can also display information about a specific connected user.
The cifs sessions command syntax is as follows:
cifs sessions <username>
To display information about all connected users, use the following command syntax:
cifs sessions
Sample output is
Server Registers as 'TOASTER` in group WNT-DOMAIN
WINS Server: 272.320.0.4
PC style Access Control is being used
Using domain controller WNT-DOMAIN-PDC for authentication
========================================
PC (user) #shares #files
SMITHPC (qsmith) 1 1
PETERSPC (zpeters) 2 3
To display the information for a particular user, specify the user name in the command; for example:
cifs sessions ghopper
users
shares/files opened
HALEY-HOME1 (ghopper)
ENG-USERS
Read-denyW - \GHOPPER\SRC\PROD\COMMON\HTTPD\httpd_fast.c
HALEY-PC (ghopper)
ENG-USERS
To display security information for each connected user, use cifs sessions with the -s option. After the first two lines, detailed information for each connected user is displayed. The following example lists only one user.
cifs sessions -s
users
Security Information
HOLARD-PC (root)
***************
UNIX uid = 0
user is a member of group daemon (1)
user is a member of group www (204)
user is a member of group well (0)
user is a member of group http (500)
NT membership
WNT-DOMAIN\root
WNT-DOMAIN\Domain Users
WNT-DOMAIN\Domain Admins
WNT-DOMAIN\SU Users
WNT-DOMAIN\Installers
BUILTIN\Users
BUILTIN\Administrators
User is also a member of Everyone, Network Users,
Authenticated Users
***************
Copyright © 1999, Network Appliance, Inc. All rights reserved.
Part No. 210-02334
File: cifs27.htm
Last updated: 04/26/99 08:11:33