I think this will have to be done on the SAMBA side, and so you'd probably have better luck asking this question in the Linux forum. Chances are much greater you'll find someone with some SAMBA expertise over there.
I am useing Windows XP Profesional
that is connecting (a folder)on a samba server.
I have users go to
the share ,and enter their username
and password to access the folder,
but when another user whants to use
the the folder, I dont want that person to log
off and log back in to access the share
under thier username.
I need the users to be able to run a script
that will disconnect them from the
share and then the next user can
enter thier password.
-- Thanks

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic