Re: Re: How can I add a user for openbmc and remove the default root user?

Gunnar Mills gmills at linux.vnet.ibm.com
Wed Dec 18 08:08:22 AEDT 2019


On 12/16/2019 7:44 AM, Thomaiyar, Richard Marian wrote:
>
> 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
>
>

I am missing something here.. This does not work for me. I didn't think 
we allowed removing the root user, which is why it is disabled on the 
WebUI? If we do allow deleting the root user, should this be allowed 
from the WebUI?

When sshed as root:
busctl call xyz.openbmc_project.User.Manager 
/xyz/openbmc_project/user/root xyz.openbmc_project.Object.Delete Delete
Call failed: The operation failed internally.

In the journal I see
Dec 17 20:57:56 w37 phosphor-user-manager[220]: userdel: user root is 
currently used by process 1
Dec 17 20:57:56 w37 phosphor-user-manager[220]: The operation failed 
internally.
Dec 17 20:57:56 w37 phosphor-user-manager[220]: User delete failed
Dec 17 20:57:56 w37 phosphor-user-manager[220]: The operation failed 
internally.


When sshed as an "Administrator" role account,  with the same call:
Call failed: Access denied

NOTE: As an "Administrator" role I can't delete a user using "busctl 
call" only from the Redfish/WebUI, am I able to.

Thanks!
Gunnar


More information about the openbmc mailing list