Koozali.org: home of the SME Server

force Windows 2000 to 'forget' logged user for Samba share

Edward

force Windows 2000 to 'forget' logged user for Samba share
« on: December 12, 2001, 09:13:08 PM »
I'm hoping that the subject line says it all however here goes:

I'm using E-smith/March Networks server in an environment with mixed Windows 2000 and Windows 98 desktops. We are using and enforcing separate passwords for accessing desktop and network shares (except for Win98 clients). (both for security sake and to prevent a desktop virus from potentially infecting the file server on reboot - in addition to regular weekly updates of virus defs and a firewall with virus protection)

This means that when the user attempts to access the network share on the Samba server they need to again type a username and password. It sometimes occurs that the currently logged on user needs access to another share to which they do not have priviledges. Currently the user just logs out and logs back in to force Windows to forget the logon password.

Is there something we can do within Windows 2000 to 'log out' of the Samba server and logon again as another username/password?

I've searched Dejanews off and on over the past few days to no avail.

Thanks.

Dan G.

Re: force Windows 2000 to 'forget' logged user for Samba sha
« Reply #1 on: December 12, 2001, 11:02:26 PM »
For Windows 2000, you could create a batch file that uses a 'net use' command, and put a shortcut on the desktop.  Then the user could clear all shares, and would be prompted for a password the next time the went to access a share.  For instance, clear all shares with a ' net use * /delete /Y' -- kills all current shares and suppresses the Y/N prompt.

For Windows 98, I believe you are stuck with the user name you started the login session with -- if you started logged in a jdoe, you are jdoe until you logout/in.  In Win2k, you get a dialog box allowing input of both a username and a password when opening a new share.

Darrell May

Re: force Windows 2000 to 'forget' logged user for Samba sha
« Reply #2 on: December 13, 2001, 05:24:37 AM »
Edward wrote:
> It sometimes occurs that the currently logged
> on user needs access to another share to which they do not
> have priviledges. Currently the user just logs out and logs
> back in to force Windows to forget the logon password.
>
> Is there something we can do within Windows 2000 to 'log out'
> of the Samba server and logon again as another
> username/password?

How about Windows Explorer > Tools > Map Network Drive > connect using a different username?

Darrell

Gary Parker

Re: force Windows 2000 to 'forget' logged user for Samba sha
« Reply #3 on: December 13, 2001, 02:21:16 PM »
Grrr.....I come across this bug all the time...sorry, shouldn't really refer to it as a bug, M$ calls it a 'feature' :)

Basically, NT/2K won't allow you to connect to shared resources on a server using more than one set of credentials at a time. For some bizarre reason Samba seems to emulate this 'feature'.

Check out [Q106211] on M$ Technet for more info....

Gary