share created with net use with other account than login accout disappear

0

We have the problem that we are trying to create a share with net use with a different account than the actual login account on a Win7 PC.

e.g. login account is "user" (the actual account used to logon to the PC) account used for our software "admin" (the account which is used to run our application)

the SMB share is created with the credentials of the login account: net use \\server\path

then, later, when an operator copies a file to this share via our application, the share is no longer present.

This can be simulated on any windows PC with 2 accounts: a login account, and a different account as follows:

  • login with user account
  • open a command box as user 2 (e.g. run as admin)
  • net use \server\path
  • net use (verify the share is created)

then - open a new command box, again as user 2 (e.g. run as admin) - net use (and now verify that the share is no longer available to this account)

Strangely enough, this works fine when you do this exercise with the login account.

Advice/help is much appreciated!

bas

Posted 2013-11-15T12:23:09.403

Reputation: 279

Verify all permissions to the share. Are we talking about domain user accounts or just local user accounts? – Ramhound – 2013-11-15T12:47:01.607

Both are local accounts. The share is read&write enabled for "everybody". (fullcontrol even,. for everybody) – bas – 2013-11-15T13:24:32.400

These users accounts only have read and write permissions. What about the List Folder Contents permission? – Ramhound – 2013-11-15T13:28:01.730

The problem is that when the share is created the admin account, the share is no longer visible when I open a new command box (both command boxes opened as admin). When I create the share, I can write to the share, on either account. So it's not a permissions issue, that I know for sure. – bas – 2013-11-15T19:41:19.833

Answers

1

John 'Shuey' Schuepbach

Posted 2013-11-15T12:23:09.403

Reputation: 88

tried the solution, no luck though. Thx for the help though! – bas – 2013-11-20T19:20:26.093