If I want to close a user session on a Samba server, the smbcontrol close-share
and smbcontrol kill-client-ip
commands are available to achieve this. However when dealing with a shared client (a Windows Terminal Server for example) these commands close the session of all users on that client.
Is it possible to close the session of only one user if that session comes from a shared host? I've looked at the smbcontrol
, samba-tool
and net
utilities, and although net rap session
looked promising, it doesn't seem to work. I also tried net rpc file CLOSE
, but that too doesn't seem to work.