login with different names in Samba server

I setup a samba server in RHEL 6 with different users, when I browse it and login with one account, the windows seems remember the login and no more login windows prompt out again. I would like to make the samba / windows to ask each time when different users is try to login.

Thanks
mmccyAsked:
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.

ThomasMcA2Commented:
If you don't let Windows remember the login, Windows may prompt the user for the credentials at odd/inconvenient times. One workaround is to create a login script that makes the samba connections, which forces the user to re-enter their password, like this:

:: delete the current connection (just in case)
net use m: /delete

:: reconnect
net use m: "\\172.16.1.1\share_name" /persistent:yes /user:%username%

Change the m: to the drive letter of the user's mapped drive, change the IP address to the address or name of your server, and change the share_name to the name of the share defined in smb.conf.
0

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
Gerwin Jansen, EE MVETopic Advisor Commented:
Which Windows version is this and do you see is the 'Reconnect at logon' in the map drive Window selected?
0
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.