Skip to content
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

molly-guard does not intercept reboot/shutdown/halt/.... #356218

Open
alembiq opened this issue Nov 15, 2024 · 0 comments
Open

molly-guard does not intercept reboot/shutdown/halt/.... #356218

alembiq opened this issue Nov 15, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@alembiq
Copy link

alembiq commented Nov 15, 2024

Describe the bug

I have molly-guard installed, but it does not intercept reboot/shutdown/halt/... when I enter these commands into terminal, they're executed instead of me being asked for hostname to confirm I'm on the right machine.

Steps To Reproduce

Steps to reproduce the behavior:

  1. terminal: reboot
  2. machine reboots

Expected behavior

  1. terminal: reboot
  2. user is asked to write hostname
    3a. if correct - machine reboots
    3b. if incorrect - machine does nothing

Additional context

which {halt,reboot,shutdown}
/etc/profiles/per-user/charles/bin/halt
/etc/profiles/per-user/charles/bin/reboot
/etc/profiles/per-user/charles/bin/shutdown

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.60, NixOS, 24.11 (Vicuna), 24.11.20241109.76612b1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source

Notify maintainers

@DerTim1


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@alembiq alembiq added the 0.kind: bug Something is broken label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant