`sudo-rs` does not work without `sudo` installed, issue possible happens due to missing `/etc/pam.d/sudo` file

Description:

I had a similar issue when it was a aur pacakage, if i remove both sudo and sudo-rs, and any other file and install sudo-rs as a fresh packages, and then try to use it i get the following error

sudo-rs: Account validation failure, is your account locked?

similarly for visudo-rs

visudo: Permission denied (os error 13)

now if I link /etc/pam.d/sudo-i to /etc/pam.d/sudo, sudo-rs starts to work, but visudo-rs still does not

Additional info:

  • package version(s): sudo-rs 0.2.4, package version 0.2.4-4
  • config and/or log files: none (only a sudoers file which allows my user to have sudo access)
  • link to upstream bug report, if any: could not find any

Steps to reproduce:

  1. install sudo-rs
  2. remove sudo
  3. try to use sudo-rs
Edited by sga