Using localised operating system versions means you have a really hard time finding the cause of an error.
In my case, a net share command gave me a Dutch “Systeemfout 1332.” “Er is geen toewijzing uitgevoerd tussen accountnamen en beveiligings-id’s.”.
Obviously searching for “net share” “Systeemfout 1332.” and “net share” “Er is geen toewijzing uitgevoerd tussen accountnamen en beveiligings-id’s.” delivered nothing, as a did shorter “net share” “Er is geen toewijzing uitgevoerd” only found [WayBack] Welkom bij ronald.repareert.com ….. sites door vrienden en kennissen which got me the error code 1332:
[WayBack] Error code 1332: No mapping between account names and security IDs was done.
This allowed me to search for “net share” “No mapping between account names and security IDs was done.” which did return some meaningful results:
The command I used was this:
mkdir D:\tmp$
net share tmp$=D:\tmp /unlimited /grant:everyone,full
The adding factor was that this was done on a machine inside a domain.
Since there was no group everyone inside the domain, it could not be bound to a SID.
Replacing the last command with net share vincent$=D:\Vincent$ /unlimited /grant:.\everyone,full or net share vincent$=D:\Vincent$ /unlimited /grant:.\users,full dit get the same error.
But this succeeded, as gebruikers is the Dutch translation for users:
net share vincent$=D:\Vincent$ /unlimited /grant:.\gebruikers,full
So in the end:
- use localised group names
- be careful with group names not existing in the domain
If you wonder why I started with everyone in the first place: [WayBack] The Difference Between Everyone and Authenticated Users
In this case, the group .\everyone did not exist, not even in a translated fashion iedereen. The command net localgroup gives you an overview of existing local groups on the machine:
C:\WINDOWS\system32>net localgroup
Aliassen voor \\MYPCINDOMAIN
-------------------------------------------------------------------------------
*Administrators
*Apparaateigenaars
*Back-upoperators
*Cryptografie-operators
*DCOM-gebruikers
*Externe bureaubladgebruikers
*Gasten
*Gebruikers
*Gebruikers van extern beheer
*Hoofdgebruikers
*Hyper-V-administrators
*IIS_IUSRS
*Lezers van gebeurtenislogboeken
*Netwerkconfiguratieoperators
*Ondersteuningsoperators voor toegangsbeheer
*Prestatielogboekgebruikers
*Prestatiemetergebruikers
*Replicatie
*System Managed Accounts Group
De opdracht is voltooid.
I am still not sure why group iedereen does not exist, as I expected that to be there: [WayBack] Windows Built-in Users and Default Groups – Windows CMD – SS64.com.
It might have to do with newer Windows versions not supporting it (this machine was Windows 10, and it looks like Windows Server 2012 also has a problem: [WayBack] An error occurs while sharing folder on WS 2012 with net share command).
–jeroen