My environment:
- Windows Server 2012 R2 with Remote Desktop Services installed on it.
- Programming with C
Problem:
User U1 connects to the Windows Server via RDP and creates a global mutex (CreateMutex with the Global\\ prefix)
- User U1 creates the global Windows mutex with the following permissions:
- CREATOR
- SYSTEM
- ADMINISTRATORS
- User U1 creates the global Windows mutex with the following permissions:
User U2 connects to the Windows Server via RDP and tries to get a handle to the global mutex
U2 fails due to the lack of access rights (since U2 is not an admin, not a system and he is not the creator as well)
- Received "Access is denied"
I tried to resolve the problem by adding one more permissions which is for the current AD domain users and it worked.
Is this solution secured enough? On other words, what is the proper way of granting access rights to allow mutliple-RDP users to access the mutex?
Thank you