Skip to content

[Bug]: scripts: sudo password not getting through #2721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
philn opened this issue Apr 27, 2025 · 1 comment
Open
1 task done

[Bug]: scripts: sudo password not getting through #2721

philn opened this issue Apr 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@philn
Copy link
Contributor

philn commented Apr 27, 2025

What did you expect to happen?

  1. Create a script containing sudo echo $(whoami)
  2. Run sudo -k
  3. Run created script

What happened?

sudo prompts for the password but hitting enter key has no visible effect. The prompt remains until the script is interrupted with Ctrl-c.

Atuin doctor output

{
  "atuin": {
    "version": "18.5.0",
    "sync": {
      "cloud": false,
      "records": true,
      "auto_sync": true,
      "last_sync": "2025-04-27 13:48:17.471231688 +00:00:00"
    },
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "fish",
    "default": "fish",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Fedora Linux",
    "arch": "x86_64",
    "version": "42",
    "disks": [
      {
        "name": "composefs",
        "filesystem": "overlay"
      },
      {
        "name": "/dev/mapper/fedora-root",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p2",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/mapper/fedora-root",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p1",
        "filesystem": "vfat"
      },
      {
        "name": "/dev/mapper/fedora-home",
        "filesystem": "ext4"
      },
      {
        "name": "sysext",
        "filesystem": "overlay"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@philn philn added the bug Something isn't working label Apr 27, 2025
@philn
Copy link
Contributor Author

philn commented Apr 27, 2025

Workaround: run some sudo ls command before running the script and don't run sudo -k ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant