-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useradd/usermod doesn't update /etc/ipmi_pass #2
Comments
We can try to add extra user password to ipmi_pass file as default value . But how to generate these hash code about extra user password in ipmi_pass file? @tajudheenk |
There is no direct way to update /etc/ipmi_pass, but once this image is flashed, login to bmc serial console, then try to execute passwd and update the password to the desired one (during this scenario, the new password is stored back in /etc/ipmi_pass). Now copy this /etc/ipmi_pass from your BMC to your development environment, and override it using bbappend. Note: Our ultimate goal is to get rid of the default user name and password from the system (to whichever project it is feasible for security reason -- https://github.com/openbmc/docs/blob/master/user_management.md#deployment---out-of-factory) Let me know if you need any further clarifications Note: As i see some people are using this, thought of writing a small program, and add it in the userclass such that when new user password is set it can be done. Will think about the usage and if it make sense, will do the same (but as of now, it will be in lower priority, Let me know if anyone can contribute, can provide help in getting it done). |
@rthomaiy Isn't it required to add /etc/ipmi_pass file to whitelist to retain the password after image update? |
What do you mean by whitelist here. We are using overlay concepts, and /etc/ipmi_pass is rw filesystem for us. We preserve all rw filesystem as part of firmware update. |
As per my understanding, OpenBMC only preserves files in overlayFS specified in whitelist file during image update. |
i want to add an user(ADMIN ADMIN) to /etc/ipmi_pass, but failed. How can i do for tihs? |
The PAM settings prohibit the password you have chosen. |
Yes, I tried to modify pam_cracklib.so to generate this file, but it didn't work。 |
Can someone tell me how to make an ipmi_pass file with two accounts (root 0penBmc) and (ADMIN ADMIN)? |
#!/bin/bash -e
user_uid=`ipmitool user list 1 | grep ADMIN | awk '{print $1}'`
if [ -z "$user_uid" ]
then
echo -e "Create Ipmi User ADMIN"
ipmitool user set name 3 ADMIN
ipmitool user set password 3 ADMIN@123
ipmitool channel setaccess 1 3 callin=on ipmi=on link=on privilege=4
ipmitool user enable 3
ipmitool channel getaccess 1 3
else
echo -e "Do nothing"
fi
|
useradd/usermod
typically used with EXTRA_USERS_PARAMS to add or change user in the image.But this doesn't update
/etc/ipmi_pass
file causes OOB IPMI to fail. But when user credentials are changed withpasswd
command it works fine.Looks like
pam_sm_chauthtok()
is not getting called onuseradd/usermod
commands.The text was updated successfully, but these errors were encountered: