<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb18030">
  </head>
  <body>
    <p>Delete interface is exposed as part of the user object itself.
      Sample busctl command to do the delete of an user under
      phosphor-user-manager</p>
    <p>busctl call xyz.openbmc_project.User.Manager
      /xyz/openbmc_project/user/<username>
      xyz.openbmc_project.Object.Delete Delete</p>
    <p>Regards,</p>
    <p>Richard<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/16/2019 2:31 PM, 南野ムルシエラゴ wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:tencent_74FD2ECBC3FF44DE65AAF884C881E0C34D05@qq.com">
      <meta http-equiv="content-type" content="text/html;
        charset=gb18030">
      <div>Hi Thomaiyar</div>
      <div><br>
      </div>
      <div>Thanks for your advices. Acctually I want to add a user
        dynamically when after openbmc is running, not in the image
        building time. And I do some trials, and it seems to work.</div>
      <div>1. After login in as root, I use busctl to call the
        CreateUser method of phosphor-user-manager</div>
      <div><img src="cid:part1.0D8A8059.84BF3EEF@linux.intel.com"
          modifysize="78%" diffpixels="17px" scalingmode="zoom"
          style="width: 829px; height: 65px;" class=""></div>
      <div>
        <div>2. After that, I use passwd command to change user liu3's
          password. The password can not be too simple, and I set
          password as "qwertyuiop[]123".</div>
        <div><img src="cid:part2.7EB95DD9.BA3A2997@linux.intel.com"
            modifysize="78%" diffpixels="17px" scalingmode="zoom"
            style="width: 829px; height: 106px;" class=""></div>
        <div>3. Then I can see two user in /xyz/openbmc_project/user.
          They are root and liu3</div>
        <div><img src="cid:part3.FAF4EF8A.08ED8889@linux.intel.com"
            modifysize="80%" diffpixels="18px" scalingmode="zoom"
            style="width: 843px; height: 135px;" class=""></div>
        <div>4. In another computer(accutally I run openbmc in qemu, and
          "another computer" means the host system), I try to access the
          openbmc with curl and ipmitool. And it seems to work.</div>
        <div><img src="cid:part4.BA364F98.1EAB49C7@linux.intel.com"
            modifysize="80%" diffpixels="17px" scalingmode="zoom"
            style="width: 843px; height: 209px;" class=""></div>
        <div>Although I can add a user, but I still do not know how to
          delete the added user. I haven't found a deleteuser d-bus
          interface like createuser interface.</div>
        <div><br>
        </div>
        <div>Best Regards!</div>
        <div>Liu Hongwei</div>
        <div style="font-size: 12px;font-family: Arial
          Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div>
        <div style="font-size: 12px;background:#efefef;padding:8px;">
          <div><b>发件人:</b> "Thomaiyar, Richard
            Marian"<a class="moz-txt-link-rfc2396E" href="mailto:richard.marian.thomaiyar@linux.intel.com"><richard.marian.thomaiyar@linux.intel.com></a>;</div>
          <div><b>发送时间:</b> 2019年12月16日(星期一) 下午3:18</div>
          <div><b>收件人:</b> "南野ムルシエラゴ"<a class="moz-txt-link-rfc2396E" href="mailto:1181052146@qq.com"><1181052146@qq.com></a>;"openbmc"<a class="moz-txt-link-rfc2396E" href="mailto:openbmc@lists.ozlabs.org"><openbmc@lists.ozlabs.org></a>;<wbr></div>
          <div><b>主题:</b> Re: How can I add a user for openbmc and
            remove the default root user?</div>
        </div>
        <div><br>
        </div>
        Hi Liu,<br>
        <br>
        Please refer earlier response on the same<br>
        <br>
        <a class="moz-txt-link-freetext" href="https://lists.ozlabs.org/pipermail/openbmc/2019-June/016515.html">https://lists.ozlabs.org/pipermail/openbmc/2019-June/016515.html</a><br>
        <br>
        Lately i am seeing many people asking for this password override
        for <br>
        IPMI, Will try to override the same using bbclass for ipmi
        password too<br>
        <br>
        Regards,<br>
        <br>
        Richard<br>
        <br>
        On 12/14/2019 3:27 PM, 南野ムルシエラゴ wrote:<br>
        > Greetings!<br>
        >     I am using openbmc, and I want to remove the default
        root user and <br>
        > add a new user.<br>
        >     I use useradd add a user, I can use curl with this
        username and <br>
        > passwd to connect to openbmc, But when I use ipmitool, it
        fails<br>
        >     Can any one tell me what can I  do?<br>
        ><br>
        > Best Regards!<br>
        > Liu Hongwei<br>
      </div>
    </blockquote>
  </body>
</html>