Skip to content
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

FS#4044 - Failed to change the system password #9220

Closed
openwrt-bot opened this issue Sep 17, 2021 · 3 comments
Closed

FS#4044 - Failed to change the system password #9220

openwrt-bot opened this issue Sep 17, 2021 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

slava:

I can't change the root password via LuCI on LuCI openwrt-21.02 branch (git-21.231.26241-422c175) / OpenWrt 21.02.0 r16279-5cc0535800
The router is ASUS RT-AC68U.

I can change the root password from the console using passwd but then I can't login to LuCI using the new password.

The problem is that it used to work. Could it be a conflict with some packages I installed?

See the screenshot and the list of packages attached.

@openwrt-bot
Copy link
Author

slava:

Removing of shadow and shadow-passwd fixed the problem.

Looks like that LuCI used passwd from the package "shadow". Could you fix this issue and let LuCI to use the correct passwd executable?

@openwrt-bot
Copy link
Author

Golffies:

We can confirm the bug Viacheslav reported.

Our version of LuCI is git-21.252.54297-fc2ff4d
Our router is a Turris Omnia with TurrisOS 5.2.7

@openwrt-bot
Copy link
Author

jow-:

LuCI has been patched to explicitly invoke Busybox "passwd" with https://git.openwrt.org/22e2bfb0, see also openwrt/luci#5629.

The "shadow-passwd" <> "musl crypt()" incompatibility needs to be separately addressed in the shadow-tools package though, ideally by honoring CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK, if the hack is not disabled, shadow-passwd may not use Blowfish or SHA ciphers, but only MD5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant