Compare commits
No commits in common. "59d52ce5daddb1d176e65b58dae39fd8c3f9f4d1" and "63e956ded48c5a6e2896bc94e05adca5cdb76a15" have entirely different histories.
59d52ce5da
...
63e956ded4
@ -2,16 +2,6 @@
|
|||||||
|
|
||||||
updateDockerSudoPassword()
|
updateDockerSudoPassword()
|
||||||
{
|
{
|
||||||
# The manager's system password is set at install (as root, via chpasswd).
|
|
||||||
# Under the de-sudo model the runtime runs AS the manager with a SCOPED
|
|
||||||
# sudoers that grants only LP_HELPERS/LP_SYSTEM + running-as-the-install-user
|
|
||||||
# — NOT `passwd`. So re-syncing here at runtime can't work (sudo passwd is
|
|
||||||
# denied) and isn't needed (sudo is NOPASSWD-scoped; admin login is key-based
|
|
||||||
# / managed by the SSH page). Skip unless actually root, else every system
|
|
||||||
# scan fails this step. (Previously masked by `local result=$(…)`.)
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
local result; result=$(echo -e "$CFG_LIBREPORTAL_USER_PASS\n$CFG_LIBREPORTAL_USER_PASS" | runSystem passwd "$sudo_user_name" > /dev/null 2>&1)
|
local result; result=$(echo -e "$CFG_LIBREPORTAL_USER_PASS\n$CFG_LIBREPORTAL_USER_PASS" | runSystem passwd "$sudo_user_name" > /dev/null 2>&1)
|
||||||
checkSuccess "Updating the password for the $sudo_user_name user"
|
checkSuccess "Updating the password for the $sudo_user_name user"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user