Skip to content

Completely locked out of sudo on secure-boot ubuntu #434

@x10an14

Description

@x10an14

Describe the bug

This has to do with the issues referencing sudo enabled by default.

My difference from the original issue (closed 20hrs ago as of this writing), is that I am on a secure-boot tpm-encrypted work laptop.
I am not allowed to put a password on my root account.
I am not allowed to have multiple users (at all).
I am not allowed to turn off secure-boot.
I am not allowed to get password to UEFI/BIOS (which is locked for the aforementioned reasons).

There's a reference in the release documentation to "Safety-wise, this feature never deletes an existing user. If anything goes wrong, disabling system-manager resets the users and groups to what they were before the system-manager activation".

Is this possible to do without sudo? If not, then what is it this line is supposed to say?

To Reproduce

Steps to reproduce the behavior:

  1. Set-up full tpm-backed secure-boot with LTS ubuntu encrypting drives
  2. Use system-manager post 1.0 (not expecting breaking changes)
  3. Get hit by the abovementioned issues (or something similar).

Expected behavior

Breaking changes to not be introduced.

System information

flake.lock system-manager section:

"system-manager": {
      "inputs": {
        "flake-compat": "flake-compat_4",
        "nixpkgs": [
          "nixpkgs"
        ],
        "userborn": "userborn"
      },
      "locked": {
        "lastModified": 1773827232,
        "narHash": "sha256-7oAUEjTDc7tgNYbaxrPTqJsq1CCh1hObkW8orBcvZNM=",
        "owner": "numtide",
        "repo": "system-manager",
        "rev": "617183f535579e431803403063182c040e2685d2",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "system-manager",
        "type": "github"
      }
    }
❯ : uname; lsb_release -a
──────────────────┬──────────────────────
 kernel-name      │ Linux
 nodename         │ nav-x10an14-t14
 kernel-release   │ 6.8.0-60-generic
 kernel-version   │ #63-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 19:04:15 UTC 2025
 machine          │ x86_64
 operating-system │ GNU/Linux
──────────────────┴──────────────────────
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.4 LTS
Release:	24.04
Codename:	noble

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions