-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
nixos: Confusion around the "su" command #1877
Comments
I assume this fixes #1813 |
@wkennington, yes this should fix #1813. The question is how it should be solved. The most reasonable solution, I think, is to split the |
@rickynils Do you think you can implement this in time for the |
I've implemented his change, waiting to test it now. |
There's a
su
command both in theshadow
package and inutil-linux
, and they don't behave in exactly the same way. This means that if you don't have theshadow
package installed (which is the case ifusers.mutableUsers = false
), thensu
fromutil-linux
is used. When you dosu - user
, it looks for/etc/pam.d/su-l
, which is not setup on NixOS. Therefore, authentication fails. However, if you haveshadow
insystemPackages
,su -
works because it is not looking for/etc/pam.d/su-l
.I think NixOS should settle for one package and remove
su
from the others. I have no opinion on which package to settle on, though. There might also be other collisions for related binaries.The text was updated successfully, but these errors were encountered: