{"id":41900157,"url":"https://github.com/urbanware-org/inhibit","last_synced_at":"2026-01-25T15:04:38.068Z","repository":{"id":114451479,"uuid":"126229340","full_name":"urbanware-org/inhibit","owner":"urbanware-org","description":"Script to prevent accidental execution of critical commands, e.g. to shutdown or reboot the system","archived":false,"fork":false,"pushed_at":"2026-01-22T20:50:09.000Z","size":168,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T13:11:57.503Z","etag":null,"topics":["accidental","aliases","bash","halt","poweroff","prevent","reboot","shutdown"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urbanware-org.png","metadata":{"files":{"readme":"README","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-21T19:20:02.000Z","updated_at":"2026-01-22T20:50:13.000Z","dependencies_parsed_at":"2025-03-11T22:32:24.925Z","dependency_job_id":null,"html_url":"https://github.com/urbanware-org/inhibit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/urbanware-org/inhibit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbanware-org%2Finhibit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbanware-org%2Finhibit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbanware-org%2Finhibit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbanware-org%2Finhibit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbanware-org","download_url":"https://codeload.github.com/urbanware-org/inhibit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbanware-org%2Finhibit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accidental","aliases","bash","halt","poweroff","prevent","reboot","shutdown"],"created_at":"2026-01-25T15:04:37.498Z","updated_at":"2026-01-25T15:04:38.061Z","avatar_url":"https://github.com/urbanware-org.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\nREADME (Inhibit)\r\n\r\n    Project\r\n\r\n        Inhibit\r\n        Version 1.5.0\r\n        Copyright (c) 2026 by Ralf Kilian\r\n\r\n        GitHub: https://github.com/urbanware-org/inhibit\r\n        GitLab: https://gitlab.com/urbanware-org/inhibit\r\n\r\n    Definition\r\n\r\n        The Inhibit project is a tool to prevent accidental execution of\r\n        critical commands, e.g. to shutdown or reboot the system by prompting\r\n        the user to enter its hostname.\r\n\r\n    License\r\n\r\n        This project is distributed under the MIT License. You should have\r\n        received a copy of the license along with this program (see 'LICENSE'\r\n        file). If not, you can find the license terms here:\r\n\r\n            https://opensource.org/licenses/MIT\r\n\r\n    Usage\r\n\r\n        Now, to e.g. prevent the accidental execution of the 'shutdown',\r\n        'poweroff', 'halt' and 'reboot' commands, add the following lines\r\n        either to '/etc/bashrc' (system wide) or '~/.bashrc' (for the current\r\n        user, only).\r\n\r\n        In the following examples 'inhibit.sh' is located in '/opt/inhibit'.\r\n\r\n            # Prevent certain commands to shutdown the system in any way\r\n            alias halt='/opt/inhibit/inhibit.sh halt'\r\n            alias poweroff='/opt/inhibit/inhibit.sh poweroff'\r\n            alias reboot='/opt/inhibit/inhibit.sh reboot'\r\n            alias shutdown='/opt/inhibit/inhibit.sh shutdown'\r\n\r\n        You can also give command-line arguments for the inhibited command,\r\n        for example:\r\n\r\n            alias poweroff='/opt/inhibit/inhibit.sh poweroff -f'\r\n\r\n        It is also possible to also inhibit commands for services controlled\r\n        by 'systemctl'.\r\n\r\n            alias systemctl='/opt/inhibit/inhibit.sh systemctl'\r\n\r\n        Notice that this alias will have no effect unless you explicitly add\r\n        the name of the service (or services) which should be confirmed to the\r\n        service list inside 'inhibit.conf'. Details can be found inside that\r\n        file.\r\n\r\n        After adding the preferred aliases, you can apply the changes either\r\n        by logging out and in again or by reloading the '.bashrc' file of the\r\n        current user (depending on in which file you have added the aliases).\r\n\r\n            $ source ~/.bashrc\r\n\r\n        Now, if you want to execute one of those commands for which you have\r\n        set up (created aliases for) Inhibit, you will explicitly have to\r\n        confirm their execution.\r\n\r\n    Contact\r\n\r\n        Any suggestions, questions, bugs to report or feedback to give? If so,\r\n        you can find the contact information inside the 'CONTACT' file.\r\n\r\n    Legal information\r\n\r\n        The project name is completely fictitious. Any correspondences with\r\n        existing websites, applications, companies and/or other projects are\r\n        purely coincidental.\r\n\r\n        All trademarks belong to their respective owners.\r\n\r\n        Errors and omissions excepted.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbanware-org%2Finhibit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbanware-org%2Finhibit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbanware-org%2Finhibit/lists"}