{"id":29463666,"url":"https://github.com/fiddlerwoaroof/dual-control","last_synced_at":"2026-02-07T01:03:43.525Z","repository":{"id":234500850,"uuid":"622363826","full_name":"fiddlerwoaroof/dual-control","owner":"fiddlerwoaroof","description":"PAM Module for dual control","archived":false,"fork":false,"pushed_at":"2020-10-31T00:31:37.000Z","size":1007,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-30T19:49:55.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fiddlerwoaroof.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2023-04-01T22:14:51.000Z","updated_at":"2020-12-05T05:54:42.000Z","dependencies_parsed_at":"2024-04-19T16:28:25.071Z","dependency_job_id":null,"html_url":"https://github.com/fiddlerwoaroof/dual-control","commit_stats":null,"previous_names":["fiddlerwoaroof/dual-control"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fiddlerwoaroof/dual-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiddlerwoaroof%2Fdual-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiddlerwoaroof%2Fdual-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiddlerwoaroof%2Fdual-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiddlerwoaroof%2Fdual-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiddlerwoaroof","download_url":"https://codeload.github.com/fiddlerwoaroof/dual-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiddlerwoaroof%2Fdual-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29183301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"ssl_error","status_checked_at":"2026-02-07T00:35:01.758Z","response_time":59,"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":[],"created_at":"2025-07-14T05:38:20.577Z","updated_at":"2026-02-07T01:03:43.510Z","avatar_url":"https://github.com/fiddlerwoaroof.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://travis-ci.org/cjdev/dual-control.svg?branch=master)](https://travis-ci.org/cjdev/dual-control)\n\n# Dual Control\n\nDual Control is a PAM module that requires a user to input a generated token\nfrom another user before being granted resource access. The module also\nrequires that the user input the reason for his or her access request and, via\n`syslog`, captures all this information for future reference.\n\nAt **CJ Engineering**, we will be implementing Dual Control on our production\nboxes to ensure that a single engineer cannot use sudo to gain\napplication-roles access without meeting the above-stated requirements.\n\nDual Control is an open source project licensed under the [GNU General Public\nLicense](https://github.com/cjdev/dual-control/blob/master/LICENSE).  As it\nstands, Dual Control is written only for machines running Linux. However, we\ngraciously welcome contributions, particularly those related to portability to\nother operating systems.\n\n## Status\n\nThis is in active development. Starting with the 0.2.0 release, this uses a\ntime-based OTP token generator.\n\n## Install\n\n- Obtain and install the RPM\n  - build yourself using the code in https://github.com/cjdev/dual-control-rpm,\n    or get it from a developer\n- Edit the `/etc/pam.d/sudo`  (this is for CentOS 7, others may be different)\n  - replace the existing auth lines with\n\n```\n#%PAM-1.0\n# auth        include       system-auth\nauth        required      pam_env.so\nauth        required      pam_unix.so\nauth        sufficient    pam_dual_control.so\nauth        requisite     pam_succeed_if.so uid \u003e= 1000 quiet_success\nauth        required      pam_deny.so\naccount     include       system-auth\npassword    include       system-auth\nsession     optional      pam_keyinit.so revoke\nsession     required      pam_limits.so\n```\n\n## Add a dual control token\n\nFrom the authorizer's account home, run `dual_control`. This generates a secret\nkey for TOTP authentication and, if you have qrencode installed, generates a QR\ncode to scan.  Scan or enter this key in your authenticator app and then verify\nthat the token in your app matches the one on the screen (answer Y to the\nprompt to get a more recent token).\n\n## Use\n\n- log in with a test user that has `sudo` ability (not the vagrant account it is\n  too powerful)\n- type `sudo bash`\n- enter your password\n- enter dual control token, authorizer's username + ':' + authorizer's token\n\n## Build and test\n\n- ./configure\n- make\n- make test\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiddlerwoaroof%2Fdual-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiddlerwoaroof%2Fdual-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiddlerwoaroof%2Fdual-control/lists"}