Solved

Mapping to network drive using two different credentials simultaneously (WinXP Pro)

Posted on 2006-11-19
8
979 Views
Last Modified: 2011-10-03
Hi,
I have a program which should map a drive (e.g. P:\ ) to a network-share (e.g. \\MyServer\Folder1)
This program runs in the background under another user-account from the currently logged in user (account of logged in user: JoeSmith, Program's user account: Administrator)

The currently logged in user has also mapped to the network share, but using different credentials. - i.e. he has different permissions.

I have no test-environment where I could test it.
Will there be any conflict in provided credentials if both - my Program (startet as Administrator) and JoeSmith work on same PC simultaneously?

Thanks,

Sina

PS: Since I need this urgently any comment is appreciated and accepted answer will be a big A; thanx.
0
Comment
Question by:falahati_sina
8 Comments
 
LVL 32

Assisted Solution

by:rsivanandan
rsivanandan earned 50 total points
ID: 17974497
As long as you have set permissions on the remote share (both security & sharing), then I don't see any problem why it shouldn't work!

Cheers,
Rajesh
0
 
LVL 3

Assisted Solution

by:Skyccord
Skyccord earned 100 total points
ID: 17974740
Falahati_sina,
It will not work properly.  The reason this is said is that Windows does not like two connections to one particular device with two different set of credentials.  And if I understand you correctly BOTH accounts are logging into the SAME exact share.  And that's where your problem lies.

Stanley Louissaint
0
 

Author Comment

by:falahati_sina
ID: 17974829
Thanks for your comments...

do you suggest any other way to solve the same?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:falahati_sina
ID: 17974892
I should point out that these are not two logged in users, but one logged in user and a program (service) running under a different user-account.
Does this make any difference?
0
 
LVL 63

Assisted Solution

by:SysExpert
SysExpert earned 100 total points
ID: 17975559
1) Either delete one of the shares, or make sure that they use different Drive letters.

Any reasonalby intelligent batch file can figure out what the first free drive letter is and use it.

You should not even be having an issue if the programs are correctly written.

I hope this helps !
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 250 total points
ID: 17976005
It shouldn't be an issue. You can't map a drive under userA's login using a different set of credentials on the same server.  e.g.

x: \\servera\share   as user1

try to map y: to \\servera\othershare   as user2  and you will get clash of credentials

However if you runas /user:otheruser cmd.exe
then do
net use y: \\severa\othershare

you will notice it works - at the same time as the other user but of course usera sees the X: drive and userb sees their mapped drive (only)

In other words the credntial clash only occurs from the same USER accessing the remote server as two different usernames.  Other users on the same machine can do it.

Steve
0
 

Author Comment

by:falahati_sina
ID: 17977185
As dragon-it pointed out, I think since I am using two users the clash should be avoided...
I will try out on release environment and hope it will work. If not, I will repost the question...
Thank you all for commenting.
Regards,
Sina
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17977353
No problem
Steve
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco Access point 6 90
nexus filter logs 3 44
Cisco 5508 controller parsing error 4 63
DNS Server 7 26
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question