Describe the feature you'd like see implemented in sudo-rs
See title
What problem can be solved with this feature?
It varies a lot between systems whether or not /etc/pam.d/sudo-i is used or not. This is not directly correlated with the target os, so using #[cfg] is not possible. For example upstream sudo only enables --with-pam-login to use /etc/pam.d/sudo-i on the RedHat family of distros, but Debian also manually enables it for their distro packages: https://salsa.debian.org/sudo-team/sudo/-/blob/master/debian/rules?ref_type=heads#L18
Describe alternatives you've considered
Using #[cfg(target_os = "linux")] to enable it, but this wouldn't work on distros like Alpine that don't use --with-pam-login.
Describe the feature you'd like see implemented in
sudo-rs
See titleWhat problem can be solved with this feature? It varies a lot between systems whether or not
/etc/pam.d/sudo-i
is used or not. This is not directly correlated with the target os, so using#[cfg]
is not possible. For example upstream sudo only enables--with-pam-login
to use/etc/pam.d/sudo-i
on the RedHat family of distros, but Debian also manually enables it for their distro packages: https://salsa.debian.org/sudo-team/sudo/-/blob/master/debian/rules?ref_type=heads#L18Describe alternatives you've considered Using
#[cfg(target_os = "linux")]
to enable it, but this wouldn't work on distros like Alpine that don't use--with-pam-login
.