[Bug 2125731] Re: sudo-rs: sudo must be owned by uid 0 and have the setuid bit set

Launchpad Bug Tracker 2125731 at bugs.launchpad.net
Fri Oct 3 09:59:19 UTC 2025


This bug was fixed in the package rust-sudo-rs - 0.2.8-1ubuntu5

---------------
rust-sudo-rs (0.2.8-1ubuntu5) questing; urgency=medium

  * set setuid bit after dh_fixperms (LP: #2125731)
  * fix missing set_perms in postinst

 -- Ravi Kant Sharma <ravi.kant.sharma at canonical.com>  Thu, 02 Oct 2025
12:08:08 +0200

** Changed in: rust-sudo-rs (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-sudo-rs in Ubuntu.
https://bugs.launchpad.net/bugs/2125731

Title:
  sudo-rs: sudo must be owned by uid 0 and have the setuid bit set

Status in rust-sudo-rs package in Ubuntu:
  Fix Released

Bug description:
  While upgrading (with "sudo apt dist-upgrade"), I wasn't able to use
  sudo from another terminal.

  The upgrade was in the prepare/unpack phase. So I've seen this on the
  upgrade terminal:

  $ sudo apt dist-upgrade 
  The following packages were automatically installed and are no longer required:
    libappstream-glib8  libhidapi-hidraw0  libmanette-0.2-0  libmunge2  libobjc-14-dev  libxml2
  Use 'sudo apt autoremove' to remove them.

  Upgrading:
    base-files                    gnome-menus                             libglycin-2-0               linux-libc-dev
    bpftool                       gnome-shell                             libgnome-menu-3-0           linux-perf
    clang-19                      gnome-shell-common                      libjavascriptcoregtk-4.1-0  linux-tools-common
    clang-tools-19                gnome-shell-extension-desktop-icons-ng  libjavascriptcoregtk-6.0-1  livecd-rootfs
    evince                        gnu-coreutils                           libllvm19                   llvm-19
    evince-common                 libadwaita-1-0                          libmutter-17-0              llvm-19-dev
    gir1.2-adw-1                  libclang-common-19-dev                  libphonenumber8             llvm-19-linker-tools
    gir1.2-gmenu-3.0              libclang-cpp19                          libpmem1                    llvm-19-runtime
    gir1.2-javascriptcoregtk-4.1  libclang-rt-19-dev                      libpmemobj1                 llvm-19-tools
    gir1.2-mutter-17              libclang1-19                            libwebkit2gtk-4.1-0         mutter-common
    gir1.2-webkit2-4.1            libetonyek-0.1-1                        libwebkitgtk-6.0-4          mutter-common-bin
    gjs                           libevdocument3-4t64                     linux-generic               strace
    glycin-loaders                libevview3-3t64                         linux-headers-generic       sudo-rs
    gnome-control-center          libgjs0                                 linux-image-generic         tailscale

  Installing dependencies:
    linux-headers-6.17.0-5          linux-image-6.17.0-5-generic    linux-tools-6.17.0-5
    linux-headers-6.17.0-5-generic  linux-modules-6.17.0-5-generic  linux-tools-6.17.0-5-generic

  Suggested packages:
    linux-tools

  Summary:
    Upgrading: 56, Installing: 6, Removing: 0, Not Upgrading: 0
    Download size: 34.2 MB / 457 MB
    Space needed: 296 MB / 1578 GB available
    └─ in /boot:  151 MB / 1652 MB available

  Continue? [Y/n] 
  Get:1 https://pkgs.tailscale.com/stable/ubuntu oracular/main amd64 tailscale amd64 1.88.3 [34.2 MB]
  Fetched 34.2 MB in 4s (9215 kB/s)    
  Extracting templates from packages: 100%
  (Reading database ... 622628 files and directories currently installed.)
  Preparing to unpack .../base-files_14ubuntu2_amd64.deb ...
  Unpacking base-files (14ubuntu2) over (14ubuntu1) ...
  Setting up base-files (14ubuntu2) ...
  Installing new version of config file /etc/update-motd.d/10-help-text ...
  motd-news.service is a disabled or a static unit not running, not starting it.
  (Reading database ... 622628 files and directories currently installed.)
  Preparing to unpack .../gnu-coreutils_9.5-1ubuntu4_amd64.deb ...
  Unpacking gnu-coreutils (9.5-1ubuntu4) over (9.5-1ubuntu3) ...
  Setting up gnu-coreutils (9.5-1ubuntu4) ...
  (Reading database ... 622628 files and directories currently installed.)
  Preparing to unpack .../00-sudo-rs_0.2.8-1ubuntu4_amd64.deb ...
  Unpacking sudo-rs (0.2.8-1ubuntu4) over (0.2.8-1ubuntu3) ...
  Preparing to unpack .../01-strace_6.16+ds-2ubuntu2_amd64.deb ...
  Unpacking strace (6.16+ds-2ubuntu2) over (6.14-0ubuntu1) ...
  Preparing to unpack .../02-bpftool_7.7.0+6.17.0-5.5_amd64.deb ...
  [snipped]


  In another shell, I tried to call another sudo command:

  $ sudo snap refresh                    
  sudo-rs: sudo must be owned by uid 0 and have the setuid bit set


  I was able to reproduce that while the upgrade was ongoing. 
  At the end of the "apt upgrade", sudo worked fine. So I guess the "Setting up" or trigger steps at the end solved that but I didn't look further into this.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: sudo-rs 0.2.8-1ubuntu4
  ProcVersionSignature: Ubuntu 6.17.0-4.4-generic 6.17.0-rc5
  Uname: Linux 6.17.0-4-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.33.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Sep 26 09:01:29 2025
  InstallationDate: Installed on 2024-07-18 (435 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/usr/bin/zsh
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: rust-sudo-rs
  UpgradeStatus: Upgraded to questing on 2025-09-04 (22 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2125731/+subscriptions




More information about the foundations-bugs mailing list