Users group from NT based machines
-
Hello, I have a problem that I hope you can help me solve. I have a server application that creates folders and files in Program Files. The folders and files created should be available to the Users group from NT based machines (2k, XP Pro and 2003). The application works great for English version of Windows but one user with XP in Spanish has reported that the application does not work as supposed. The problem is that the Users group in Spanish is named Usuarios. If anyone knows a good article that I can review in order to be able to build a global (independent from the Windows language) please let me know. Thank you, Dan.
-
Hello, I have a problem that I hope you can help me solve. I have a server application that creates folders and files in Program Files. The folders and files created should be available to the Users group from NT based machines (2k, XP Pro and 2003). The application works great for English version of Windows but one user with XP in Spanish has reported that the application does not work as supposed. The problem is that the Users group in Spanish is named Usuarios. If anyone knows a good article that I can review in order to be able to build a global (independent from the Windows language) please let me know. Thank you, Dan.
-
Hi, I think one thing will be all time the same - I mean SID of Users group - S-1-5-32-545.
----------- Mila
-
Hello, I have a problem that I hope you can help me solve. I have a server application that creates folders and files in Program Files. The folders and files created should be available to the Users group from NT based machines (2k, XP Pro and 2003). The application works great for English version of Windows but one user with XP in Spanish has reported that the application does not work as supposed. The problem is that the Users group in Spanish is named Usuarios. If anyone knows a good article that I can review in order to be able to build a global (independent from the Windows language) please let me know. Thank you, Dan.
Isn't localisation wonderful? Do you mean the local machine Users group, or the domain level Users group? If you mean the local machine users group, then for WindowsXP/2003 you can use something like CreateWellKnownSid with WinBuiltinUsersSid as the sid. For 2K you'd have to manually create the SID yourself, although this isn't too hard as it is a fixed value "S-1-5-32-545", so something like SID_IDENTIFIER_AUTHORITY auth = SECURITY_NT_AUTHORITY; AllocateAndInitializeSid( &auth, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_USERS, 0, 0, 0, 0, 0, 0, TheSID); would do the trick. You can use LookupAccountSid() if you want to know the localised name, of course :)
Steve S Developer for hire
-
Isn't localisation wonderful? Do you mean the local machine Users group, or the domain level Users group? If you mean the local machine users group, then for WindowsXP/2003 you can use something like CreateWellKnownSid with WinBuiltinUsersSid as the sid. For 2K you'd have to manually create the SID yourself, although this isn't too hard as it is a fixed value "S-1-5-32-545", so something like SID_IDENTIFIER_AUTHORITY auth = SECURITY_NT_AUTHORITY; AllocateAndInitializeSid( &auth, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_USERS, 0, 0, 0, 0, 0, 0, TheSID); would do the trick. You can use LookupAccountSid() if you want to know the localised name, of course :)
Steve S Developer for hire