Re^8: Greetings and salutations | sudoby afoken (Canon)
|on Mar 05, 2020 at 19:10 UTC||Need Help??|
(You are aware that this is the passwd program is prompting for the new password for root, not sudo asking for the current password for root, aren't you?)
This looks like a single user sudo setup. In a multi-admin-setup, sudo would either prevent access to the passwd executable, or it would require that you pass a non-root username argument to passwd. sudoers has an example for that:
In a multi-admin setup, you would probably have only a few admins that can change passwords. Or maybe you have a central password database (NIS, LDAP) that comes with an independant tool to manage users.
Or maybe openSUSE uses a different sudo?
Most likely not. As far as I know, there is only one sudo. But sudo can be compiled with tons of options, and most likely, at least PAM support is enabled on openSUSE. Slackware explicitly disables PAM.
The same command looks quite different on Slackware. I think the reason for that is that Slackware does not use PAM at all.
(And yes, I use sudo in a single-user setup. My unprivileged user account is in the wheel group, and sudo is configured to prompt for a password.)
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)