What we're looking for is something like: cifs terminate username
that we could employ to kill off the CIFS session(s) for a given username.
cifs terminate takes an optional "workstation" parameter. You can use "cifs sessions username" to get the workstation name and then plug it into "cifs terminate". I suppose a user could have sessions going on multiple workstations.
It looks like it is possible for multiple users to have CIFS sessions active on the same workstation, which would happen if a person logs in to CIFS using multiple accounts. But it also appears that you can only terminate all CIFS sessions for a workstation. So you still don't get exactly what you want, but it's close.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support