How to change samba user SID?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm trying to change the SID of various user in Samba 4.1.14 using pdbedit



pdbedit --user <username> SID=<SID>


I run the command but no message is displayed nor the SID is changed.



How can I modify users' SID in Samba 4.1.14?










share|improve this question























  • I have the same problem, somehow I have two same SID's so I want to change them.

    – Davidenko
    Nov 11 '15 at 14:39











  • Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

    – msmafra
    Nov 14 '15 at 13:26











  • I recommend you start using compiled version of samba to keep it updated.

    – msmafra
    Nov 14 '15 at 16:57











  • I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

    – msmafra
    Nov 15 '15 at 15:42






  • 1





    it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

    – msmafra
    Nov 15 '15 at 15:46


















1















I'm trying to change the SID of various user in Samba 4.1.14 using pdbedit



pdbedit --user <username> SID=<SID>


I run the command but no message is displayed nor the SID is changed.



How can I modify users' SID in Samba 4.1.14?










share|improve this question























  • I have the same problem, somehow I have two same SID's so I want to change them.

    – Davidenko
    Nov 11 '15 at 14:39











  • Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

    – msmafra
    Nov 14 '15 at 13:26











  • I recommend you start using compiled version of samba to keep it updated.

    – msmafra
    Nov 14 '15 at 16:57











  • I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

    – msmafra
    Nov 15 '15 at 15:42






  • 1





    it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

    – msmafra
    Nov 15 '15 at 15:46














1












1








1


1






I'm trying to change the SID of various user in Samba 4.1.14 using pdbedit



pdbedit --user <username> SID=<SID>


I run the command but no message is displayed nor the SID is changed.



How can I modify users' SID in Samba 4.1.14?










share|improve this question














I'm trying to change the SID of various user in Samba 4.1.14 using pdbedit



pdbedit --user <username> SID=<SID>


I run the command but no message is displayed nor the SID is changed.



How can I modify users' SID in Samba 4.1.14?







samba active-directory






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 9 '15 at 19:56









msmaframsmafra

181417




181417













  • I have the same problem, somehow I have two same SID's so I want to change them.

    – Davidenko
    Nov 11 '15 at 14:39











  • Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

    – msmafra
    Nov 14 '15 at 13:26











  • I recommend you start using compiled version of samba to keep it updated.

    – msmafra
    Nov 14 '15 at 16:57











  • I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

    – msmafra
    Nov 15 '15 at 15:42






  • 1





    it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

    – msmafra
    Nov 15 '15 at 15:46



















  • I have the same problem, somehow I have two same SID's so I want to change them.

    – Davidenko
    Nov 11 '15 at 14:39











  • Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

    – msmafra
    Nov 14 '15 at 13:26











  • I recommend you start using compiled version of samba to keep it updated.

    – msmafra
    Nov 14 '15 at 16:57











  • I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

    – msmafra
    Nov 15 '15 at 15:42






  • 1





    it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

    – msmafra
    Nov 15 '15 at 15:46

















I have the same problem, somehow I have two same SID's so I want to change them.

– Davidenko
Nov 11 '15 at 14:39





I have the same problem, somehow I have two same SID's so I want to change them.

– Davidenko
Nov 11 '15 at 14:39













Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

– msmafra
Nov 14 '15 at 13:26





Two users with the same SID? Are you using only one server? My problem, which I left aside for undetermined time, is that I want to change my domain name but avoid creating "new users" on each machine when the users login using the new domain. For example perry.platypus has a SID S-1-5-21-2447931902-1787058256-3961074038-5004 on the old domain but on the new domain he has S-1-5-21-2447931902-1787058256-4461074038-2222, when he logs in in the new domain Windows will create a new user folder perry.platypus.NEWDOMAIN. That's a huge problema for me.

– msmafra
Nov 14 '15 at 13:26













I recommend you start using compiled version of samba to keep it updated.

– msmafra
Nov 14 '15 at 16:57





I recommend you start using compiled version of samba to keep it updated.

– msmafra
Nov 14 '15 at 16:57













I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

– msmafra
Nov 15 '15 at 15:42





I've tested with 4.1.14, 4.1.21, 4.2.1 e 4.3.1 and is not working. They should have removed it since it doesn't work in any version.

– msmafra
Nov 15 '15 at 15:42




1




1





it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

– msmafra
Nov 15 '15 at 15:46





it seams that in your case you'll have to choose one user to exclude from the domain and recreate the user. There was, I think it was removed from Sysinternals, a tool called NewSID or something like that. I think you can still find it. NewSID can change the local Windows user SID avoding having to copy all the user's data to the new one.

– msmafra
Nov 15 '15 at 15:46










2 Answers
2






active

oldest

votes


















0














pdbedit --user youruser -U NEWSID






share|improve this answer































    0














    Years later...
    There is no way to do that!






    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f862802%2fhow-to-change-samba-user-sid%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      pdbedit --user youruser -U NEWSID






      share|improve this answer




























        0














        pdbedit --user youruser -U NEWSID






        share|improve this answer


























          0












          0








          0







          pdbedit --user youruser -U NEWSID






          share|improve this answer













          pdbedit --user youruser -U NEWSID







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '15 at 23:30









          sherpyasherpya

          1011




          1011

























              0














              Years later...
              There is no way to do that!






              share|improve this answer




























                0














                Years later...
                There is no way to do that!






                share|improve this answer


























                  0












                  0








                  0







                  Years later...
                  There is no way to do that!






                  share|improve this answer













                  Years later...
                  There is no way to do that!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 2 at 22:49









                  msmaframsmafra

                  181417




                  181417






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f862802%2fhow-to-change-samba-user-sid%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      Brian Clough

                      Cáceres