Re: How can I add a user for openbmc and remove the default root user?
南野ムルシエラゴ
1181052146 at qq.com
Mon Dec 16 20:01:04 AEDT 2019
Hi Thomaiyar
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.
1. After login in as root, I use busctl to call the CreateUser method of phosphor-user-manager
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".
3. Then I can see two user in /xyz/openbmc_project/user. They are root and liu3
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.
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.
Best Regards!
Liu Hongwei
------------------ 原始邮件 ------------------
发件人: "Thomaiyar, Richard Marian"<richard.marian.thomaiyar at linux.intel.com>;
发送时间: 2019年12月16日(星期一) 下午3:18
收件人: "南野ムルシエラゴ"<1181052146 at qq.com>;"openbmc"<openbmc at lists.ozlabs.org>;
主题: Re: How can I add a user for openbmc and remove the default root user?
Hi Liu,
Please refer earlier response on the same
https://lists.ozlabs.org/pipermail/openbmc/2019-June/016515.html
Lately i am seeing many people asking for this password override for
IPMI, Will try to override the same using bbclass for ipmi password too
Regards,
Richard
On 12/14/2019 3:27 PM, 南野ムルシエラゴ wrote:
> Greetings!
> I am using openbmc, and I want to remove the default root user and
> add a new user.
> I use useradd add a user, I can use curl with this username and
> passwd to connect to openbmc, But when I use ipmitool, it fails
> Can any one tell me what can I do?
>
> Best Regards!
> Liu Hongwei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191216/9142f573/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0190C061 at AD915844.D047F75D.PNG.jpg
Type: image/jpeg
Size: 13741 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191216/9142f573/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03DDD2A3 at E221B725.D047F75D.PNG.jpg
Type: image/jpeg
Size: 15473 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191216/9142f573/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5F6A67C8 at 97254D7F.D047F75D.PNG.jpg
Type: image/jpeg
Size: 18854 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191216/9142f573/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 368D2BA4 at C480D813.D047F75D.PNG.jpg
Type: image/jpeg
Size: 39229 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191216/9142f573/attachment-0007.jpg>
More information about the openbmc
mailing list