All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomaiyar, Richard Marian" <richard.marian.thomaiyar@linux.intel.com>
To: 南野ムルシエラゴ <1181052146@qq.com>, openbmc <openbmc@lists.ozlabs.org>
Subject: Re: Re: How can I add a user for openbmc and remove the default root user?
Date: Mon, 16 Dec 2019 19:14:13 +0530	[thread overview]
Message-ID: <a0e57fe5-e616-a0c2-a07a-a58407bebdfd@linux.intel.com> (raw)
In-Reply-To: <tencent_74FD2ECBC3FF44DE65AAF884C881E0C34D05@qq.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030; format=flowed, Size: 2325 bytes --]

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

busctl call xyz.openbmc_project.User.Manager 
/xyz/openbmc_project/user/<username> xyz.openbmc_project.Object.Delete 
Delete

Regards,

Richard


On 12/16/2019 2:31 PM, ÄÏÒ°¥à¥ë¥·¥¨¥é¥´ wrote:
> 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
> ------------------0„2ԭʼÓʼþ0„2------------------
> *·¢¼þÈË:*0„2"Thomaiyar, Richard 
> Marian"<richard.marian.thomaiyar@linux.intel.com>;
> *·¢ËÍʱ¼ä:*0„22019Äê12ÔÂ16ÈÕ(ÐÇÆÚÒ») ÏÂÎç3:18
> *ÊÕ¼þÈË:*0„2"ÄÏÒ°¥à¥ë¥·¥¨¥é¥´"<1181052146@qq.com>;"openbmc"<openbmc@lists.ozlabs.org>;
> *Ö÷Ìâ:*0„2Re: 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!
> > 0„2 0„2 I am using openbmc, and I want to remove the default root user and
> > add a new user.
> > 0„2 0„2 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
> > 0„2 0„2 Can any one tell me what can I0„2 do?
> >
> > Best Regards!
> > Liu Hongwei

[-- Attachment #2.1: Type: text/html, Size: 4882 bytes --]

[-- Attachment #2.2: 0190C061@AD915844.D047F75D.PNG.jpg --]
[-- Type: image/jpeg, Size: 13741 bytes --]

[-- Attachment #2.3: 03DDD2A3@E221B725.D047F75D.PNG.jpg --]
[-- Type: image/jpeg, Size: 15473 bytes --]

[-- Attachment #2.4: 5F6A67C8@97254D7F.D047F75D.PNG.jpg --]
[-- Type: image/jpeg, Size: 18854 bytes --]

[-- Attachment #2.5: 368D2BA4@C480D813.D047F75D.PNG.jpg --]
[-- Type: image/jpeg, Size: 39229 bytes --]

  reply	other threads:[~2019-12-16 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-14  9:57 How can I add a user for openbmc and remove the default root user? =?gb18030?B?xM/SsKXgpeult6WopemltA==?=
2019-12-16  6:48 ` Thomaiyar, Richard Marian
2019-12-16  9:01   ` =?gb18030?B?UmWjuiBIb3cgY2FuIEkgYWRkIGEgdXNlciBmb3Igb3BlbmJtYyBhbmQgcmVtb3ZlIHRoZSBkZWZhdWx0IHJvb3QgdXNlcj8=?= =?gb18030?B?xM/SsKXgpeult6WopemltA==?=
2019-12-16 13:44     ` Thomaiyar, Richard Marian [this message]
2019-12-17  2:16       ` =?gb18030?B?u9i4tKO6IFJlo7ogSG93IGNhbiBJIGFkZCBhIHVzZXIgZm9yIG9wZW5ibWMgYW5kIHJlbW92ZSB0aGUgZGVmYXVsdCByb290IHVzZXI/?= =?gb18030?B?xM/SsKXgpeult6WopemltA==?=
2019-12-17 21:08       ` Re: How can I add a user for openbmc and remove the default root user? Gunnar Mills
2019-12-18 12:42         ` Thomaiyar, Richard Marian
2019-12-19  6:36           ` Joseph Reynolds
2019-12-19  9:09             ` Thomaiyar, Richard Marian
2020-01-02  3:16               ` Joseph Reynolds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0e57fe5-e616-a0c2-a07a-a58407bebdfd@linux.intel.com \
    --to=richard.marian.thomaiyar@linux.intel.com \
    --cc=1181052146@qq.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.