Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Users group from NT based machines

Users group from NT based machines

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micutzu
    wrote on last edited by
    #1

    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.

    M S 2 Replies Last reply
    0
    • M micutzu

      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.

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, I think one thing will be all time the same - I mean SID of Users group - S-1-5-32-545.

      ----------- Mila

      M 1 Reply Last reply
      0
      • M Mila025

        Hi, I think one thing will be all time the same - I mean SID of Users group - S-1-5-32-545.

        ----------- Mila

        M Offline
        M Offline
        micutzu
        wrote on last edited by
        #3

        Thank you. This might work. I will give it a try. Again thank you for your time. Best Regards, Dan.

        1 Reply Last reply
        0
        • M micutzu

          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.

          S Offline
          S Offline
          Steve S
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • S Steve S

            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

            M Offline
            M Offline
            micutzu
            wrote on last edited by
            #5

            Thank you, I was reffering the local machine and I had tried this approach and it works as intended. Thenk you for your time. Best Regards, Dan.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups