Hi, I want to input user name and password every time I access the share, so I want to disable password caching in windows client. I google to find there is a way to modify the windows registry. But it does not work on windows 2003. Is there another way to disable password caching in winXP, win7, 2003 and 2008? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network\DisablePwdCaching = 1 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Network?\DisablePwdCaching = 1 -- Best Regards. Yu Liao
Gaiseric Vandal
2011-Jul-19 12:40 UTC
[Samba] How to disable password caching in windows client
On 07/19/2011 06:38 AM, Yu Liao wrote:> Hi, > > I want to input user name and password every time I access the share, so I > want to disable password caching in windows client. I google to find there > is a way to modify the windows registry. But it does not work on windows > 2003. Is there another way to disable password caching in winXP, win7, 2003 > and 2008? > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network\DisablePwdCaching > = 1 > > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Network?\DisablePwdCaching > = 1 > > >If you run gpedit.msc or secpol.msc Security Settings - > Local Policies -> Security Option-> Interactive Logons: Number of Previous Logons to cache: Default value is 10. If you change it to 0 it should NOT cache any logons. That is the theory- I haven't tested it tho. There should be a corresponding registry entry.
TAKAHASHI Motonobu
2011-Jul-19 14:22 UTC
[Samba] How to disable password caching in windows client
From: Yu Liao <liaoyu17 at gmail.com> Date: Tue, 19 Jul 2011 18:38:13 +0800> I want to input user name and password every time I access the share, so I > want to disable password caching in windows client.Windows automatically sends the current logon user's name and auth information, it's by design of Windows. If the user's name and password to access the share are different from the current logon user's ones, you can input your user's name and password every time to explicitly disconnect from the share using "net use /d" command or "net session \\computername /delete" on Windows. Anyway it's the matter about Windows' behavior. --- TAKAHASHI Motonobu <monyo at samba.gr.jp>