{"id":51085158,"url":"https://github.com/maandree/key2root","last_synced_at":"2026-06-23T21:02:01.308Z","repository":{"id":356755505,"uuid":"661073001","full_name":"maandree/key2root","owner":"maandree","description":"Authenticate with keyfile and run a process as root","archived":false,"fork":false,"pushed_at":"2026-05-17T16:58:52.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-17T18:54:18.655Z","etag":null,"topics":["privilege-escalation","root","root-access","security","utility"],"latest_commit_sha":null,"homepage":"https://codeberg.org/maandree/key2root","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maandree.png","metadata":{"files":{"readme":"README","changelog":null,"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":"2023-07-01T17:47:45.000Z","updated_at":"2026-05-17T16:58:55.000Z","dependencies_parsed_at":"2026-05-09T16:52:47.983Z","dependency_job_id":null,"html_url":"https://github.com/maandree/key2root","commit_stats":null,"previous_names":["maandree/key2root"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/maandree/key2root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maandree%2Fkey2root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maandree%2Fkey2root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maandree%2Fkey2root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maandree%2Fkey2root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maandree","download_url":"https://codeload.github.com/maandree/key2root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maandree%2Fkey2root/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34706579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["privilege-escalation","root","root-access","security","utility"],"created_at":"2026-06-23T21:02:00.215Z","updated_at":"2026-06-23T21:02:01.302Z","avatar_url":"https://github.com/maandree.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\tkey2root - authenticate with a keyfile and run a process as the root user\n\nSYNOPSIS\n\tkey2root [-k key-name] [-e] command [argument] ...\n\nDESCRIPTION\n\tThe key2root utility takes a keyfile from the standard input and uses\n\tit to authenticate the user, and if the keyfile is recognised, runs the\n\tspecified command with sanitised and updated environment variables and\n\twith the keyfile as the standard input.\n\nOPTIONS\n\tThe key2root utility conforms to the Base Definitions volume of\n\tPOSIX.1-2017, Section 12.2, Utility Syntax Guidelines.\n\n\tThe following option is supported:\n\n\t-e\tKeep the environment variables as is. Neither sanitise nor\n\t\tupdate them.\n\n\t-k key-name\n\t\tCheck the input keyfile against a specific known key, rather\n\t\tthan checking against all known keys.\n\nOPERANDS\n\tThe following operands are supported:\n\n\tcommand\n\t\tThe command that shall be run with as the root user. This will\n\t\tbe both the process image and the process's zeroth command line\n\t\targument.\n\n\targument ...\n\t\tCommand line arguments for the command to run.\n\nSTDIN\n\tThe key2root utility uses the standard input as the authentication key\n\tand forwards it to the command it runs upon successful authentication.\n\nRATIONALE\n\tkey2root is useful for scripts that require both root access and a\n\tkeyfile: it lets the user write a script that can decrypt a keyfile\n\tand the successful keyfile decryption to testify that the user has\n\tauthenticated himself rather also requiring his password.\n\nSEE ALSO\n\tkey2root-addkey(8), key2root-crypt(8), key2root-lskeys(8),\n\tkey2root-rmkey(8), asroot(8), sudo(8), doas(1), su(1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaandree%2Fkey2root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaandree%2Fkey2root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaandree%2Fkey2root/lists"}