Skip to content

Conversation

Pingasmaster
Copy link

@Pingasmaster Pingasmaster commented Oct 12, 2025

Users might not know that uninstalling sudo after sudo-rs is installed might lock them out of their systems. This corrects that. The doc is changed for arch linux (where I was able to reproduce the issue on a fresh build) as well as a potential fix for:

  • Missing /etc/sudoers and /etc/sudoers-rs files will cause an obscure error about a file missing without specifying which file
  • Missing /etc/pam.d/sudo (or sudo config on freebsd) can make sudo-rs fail silently without any coherent error message.

These two issues arise from #1182.

I think we should at least let users know about this issue until we fix it one way or another. Currently, uninstalling sudo after installing sudo-rs causes files to go missing on arch linux systems, and therefore critical sudo-rs failure, locking the user out of its system from 2 different causes.

Please be kind, this is my first real contribution to a rust project, so I don't have a lot of prior experience in rust-based code. I tried my best, feel free to tell me whats wrong.

Users might not know that uninstalling sudo after sudo-rs is installed might lock them out of their systems. This corrects that. Doc change only.
…/sudo missing instantly making sudo-rs fail without a proper error message (#1)

* Make missing file errors tell which files are missing

* Clearer error message for missing /etc/sudoers & /etc/sudoers-rs files

* Ensure PAM service config is present under linux & freebsd before erroring on user for a random reason
@Pingasmaster Pingasmaster changed the title doc change: Warn users that uninstalling sudo after sudo-rs is installed will break sudo-rs fix: uninstalling sudo after sudo-rs is installed will break sudo-rs on some distros Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant