On 6/5/07, David Lee t.d.lee@durham.ac.uk wrote:
Any thoughts on how to achieve "cifs terminate username" functionality?
By the way, the environment for driving this is a set of UNIX scripts which can do operations of the form: rsh filer cifs ...
Hi,
Two things spring to mind: - You can close individual sessions from a Windows machine with the computer management MMC snap-in on it: connect to the filer, browse down to the open files & sessions (System Tools -> Shared Folders -> either "Sessions" or "Open Files") and disconnect users from there. - Since you are looking at scripting this from a Unix host, perhaps the easiest way to solve your problem is to dig into the "net" command from the Samba suite, eg.
http://us4.samba.org/samba/docs/man/manpages-3/net.8.html
See "net rap file" and "net rap session" should be able to do what you want to achieve.
Regards, Filip