how can I force the user to login samba every time ?

I have a public computer. The windows cached the login and connection when I login to the samba server once. I can not clear the connection and use other user name to login. different users need to retrieve their files from samba when they are using the computer. it is easy for users to see others files,  any time out setting I can do in the samba ?? thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The below should do what you want.

 net use \\server\share /d
 net use \\server\ipc$ /d


net use * /d
mmccyAuthor Commented:
I tried those before, but whenever I click the samba server in the network again, it will go directly to the folder I login before !! what I want is to prompt the login windows again and let me to type in the login and password again !!
Use the deadtime setting in smb.conf. The timeout setting that you use will depend on how quickly one user logs on after another user has logged off.

The following is straight out of the smb.conf man page .

deadtime (G)

The value of the parameter (a decimal integer) represents the number of
minutes of inactivity before a connection is considered dead, and it is
disconnected. The deadtime only takes effect if the number of open files
is zero.

This is useful to stop a server's resources being exhausted by a large
number of inactive connections.

Most clients have an auto-reconnect feature when a connection is broken so
in most cases this parameter should be transparent to users.

Using this parameter with a timeout of a few minutes is recommended for
most systems.

A deadtime of zero indicates that no auto-disconnection should be performed.

Default: deadtime = 0
Example: deadtime = 15

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.