far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Compatibility issue with privilege escalation

Open apv174ru opened this issue 3 months ago • 1 comments

Description: In the upcoming Ubuntu 25.10 release, sudo has been replaced with sudo-rs (the Rust implementation of sudo). This change appears to cause a compatibility issue with the privilege escalation feature in far2l.

Steps to reproduce:

  • Install Ubuntu 25.10 (development version).
  • Run far2l.
  • Attempt to perform an action requiring elevated privileges (e.g., file operations with root permissions).
Image

The part of debug log

OnChar: acsm F2 raw=ffbf code=155 uni=0 "?" ts=69725407 lke=1
invalid option provided
usage: sudo -h | -K | -k | -V
usage: sudo [-BknS] [-p prompt] [-D directory] [-g group] [-u user] [-i | -s] [command [arg ...]]
usage: sudo -v [-BknS] [-p prompt] [-g group] [-u user]
usage: sudo -l [-BknS] [-p prompt] [-U user] [-g group] [-u user] [command [arg ...]]
usage: sudo -e [-BknS] [-p prompt] [-D directory] [-g group] [-u user] file ...
OpenClientConnection: LocalSocket<15>: error 2

Actual behavior: Privilege escalation does not work due to sudo-rs not supporting --askpass (-A).

Environment: Ubuntu 25.10 (pre-release) far2l (latest build) sudo-rs (default in 25.10)

Notes: This issue is not present in Ubuntu 25.04 and earlier, where the classic sudo is still used.

apv174ru avatar Sep 26 '25 19:09 apv174ru

It appeared that they have a bug on that, lets touch it: https://github.com/trifectatechfoundation/sudo-rs/issues/1249

elfmz avatar Sep 26 '25 19:09 elfmz