{"id":22359405,"url":"https://github.com/koalagang/doasedit","last_synced_at":"2025-07-30T12:32:34.213Z","repository":{"id":193874905,"uuid":"404103451","full_name":"koalagang/doasedit","owner":"koalagang","description":"The doas equivalent for sudoedit.","archived":false,"fork":false,"pushed_at":"2025-06-25T16:17:10.000Z","size":29,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T16:49:30.438Z","etag":null,"topics":["doas","doasedit","freebsd","linux","netbsd","openbsd","opendoas","sudo","sudoedit","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koalagang.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,"publiccode":null,"codemeta":null}},"created_at":"2021-09-07T19:45:14.000Z","updated_at":"2025-06-25T16:17:14.000Z","dependencies_parsed_at":"2024-12-04T15:36:33.085Z","dependency_job_id":null,"html_url":"https://github.com/koalagang/doasedit","commit_stats":null,"previous_names":["koalagang/doasedit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koalagang/doasedit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koalagang%2Fdoasedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koalagang%2Fdoasedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koalagang%2Fdoasedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koalagang%2Fdoasedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koalagang","download_url":"https://codeload.github.com/koalagang/doasedit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koalagang%2Fdoasedit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267867803,"owners_count":24157357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["doas","doasedit","freebsd","linux","netbsd","openbsd","opendoas","sudo","sudoedit","unix"],"created_at":"2024-12-04T15:24:30.235Z","updated_at":"2025-07-30T12:32:34.194Z","avatar_url":"https://github.com/koalagang.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doasedit\n`doasedit` is the doas equivalent to [sudoedit](https://www.youtube.com/watch?v=Njsth_VeSxY).\\\nsudoedit is pretty nice but [sudo is insecure](https://www.youtube.com/watch?v=eamEZCj-CuQ) and [has had many vulnerabilities over the years](https://duckduckgo.com/?q=sudo+vulnerability), which is why, if you are on GNU/Linux, you should switch to [doas](https://github.com/nholstein/OpenDoas). Most BSD users probably already use doas.\n\n## Installation\nDependencies: doas, GNU coreutils, GNU diffutils and an editor of your choice (make sure to set the `$EDITOR`\nenvironmental variable in your shell).\n\n```sh\ndoas curl -sL \"https://raw.githubusercontent.com/koalagang/doasedit/main/doasedit\" -o /usr/bin/doasedit \u0026\u0026 doas chmod +x /usr/bin/doasedit\n```\n\u003e To uninstall, just run `doas rm /usr/bin/doasedit`\n\n## Tips\n\n- You may want to enable persistence in your doas.conf for greater convenience. To do so (provided that you are part of the `wheel` group), add the following line to `/etc/doas.conf`:\n``\npermit persist :wheel\n``\n\n- You should also make sure that `/etc/doas.conf` is owned by root. If the file is writeable for anyone, you have a ***major*** security vulnerability on your system (anyone can give themselves root privileges).\\\nYou can do this by issuing the following command:\n```sh\ndoas chown -c root:root '/etc/doas.conf'\n```\n\n- If the source file is not readable then `doasedit` will not work. You can mark a file as readable with the following command:\n```sh\ndoas chmod +r '/path/to/file'\n```\n\u003e`doas` is only required if the file is owned by root.\n\n- Some software hardcode the use of sudo if they need root privileges. This issue can be overcome by uninstalling sudo and then symlinking doas to sudo with the following command:\n\u003e Make sure to remove the `sudo` package first.\n```sh\ndoas ln -s /usr/bin/doas /usr/bin/sudo\n```\n\u003e Note that this may cause issues if the software uses sudo-specific flags\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoalagang%2Fdoasedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoalagang%2Fdoasedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoalagang%2Fdoasedit/lists"}