• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

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.
1 Solution
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now