{"id":29507242,"url":"https://github.com/antonmeep/goinsu","last_synced_at":"2025-10-14T11:36:11.317Z","repository":{"id":304772619,"uuid":"103426921","full_name":"AntonMeep/goinsu","owner":"AntonMeep","description":"(Mirror) Switch user, group and execute a program like a pro :+1:","archived":false,"fork":false,"pushed_at":"2019-03-17T12:44:21.000Z","size":37,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-15T09:43:28.582Z","etag":null,"topics":["betterc","cd","ci","containers","dlang","docker","sudo"],"latest_commit_sha":null,"homepage":"https://gitlab.com/ohboi/goinsu","language":"D","has_issues":false,"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/AntonMeep.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,"zenodo":null}},"created_at":"2017-09-13T16:57:49.000Z","updated_at":"2019-03-17T12:44:22.000Z","dependencies_parsed_at":"2025-07-15T09:43:34.427Z","dependency_job_id":"bcc19359-156c-428b-aa5e-840449ae36a9","html_url":"https://github.com/AntonMeep/goinsu","commit_stats":null,"previous_names":["antonmeep/goinsu"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/AntonMeep/goinsu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonMeep%2Fgoinsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonMeep%2Fgoinsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonMeep%2Fgoinsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonMeep%2Fgoinsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntonMeep","download_url":"https://codeload.github.com/AntonMeep/goinsu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonMeep%2Fgoinsu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019061,"owners_count":26086516,"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-10-14T02:00:06.444Z","response_time":60,"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":["betterc","cd","ci","containers","dlang","docker","sudo"],"created_at":"2025-07-16T03:30:37.860Z","updated_at":"2025-10-14T11:36:11.269Z","avatar_url":"https://github.com/AntonMeep.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"goinsu [![Page on \nDUB](https://img.shields.io/dub/v/goinsu.svg)](http://code.dlang.org/packages/goinsu)[![Licence](https://img.shields.io/dub/l/goinsu.svg)]()[![pipeline \nstatus](https://gitlab.com/AntonMeep/goinsu/badges/master/pipeline.svg)](https://gitlab.com/AntonMeep/goinsu/pipelines)\n=============\n\n**goinsu** - a simple `su` which doesn't mess with TTY and other stuff. It is as simple as \"Hey, run this program as this user\".\n\n## Why?\n```\n$ docker run -it --rm ubuntu:trusty su -c \"ps aux\"\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot         1  7.0  0.0  46644  2628 pts/0    Ss+  19:07   0:00 su -c ps aux\nroot         7  0.0  0.0  15584  2100 ?        Rs   19:07   0:00 ps aux\n$ docker run -it --rm ubuntu:trusty sudo ps aux\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot         1  7.0  0.0  46028  3044 pts/0    Ss+  19:07   0:00 sudo ps aux\nroot         6  0.0  0.0  15584  2140 pts/0    R+   19:07   0:00 ps aux\n$ docker run -it --rm -v`pwd`/goinsu:/usr/bin/goinsu ubuntu:trusty goinsu root ps aux\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot         1  0.0  0.0   7152   852 pts/0    Rs+  19:08   0:00 ps aux\n```\n\n## Why reinvent gosu?\n**goinsu** does the same thing but in 10KB (well, 50KB if compiled as a static executable) instead of 1.8MB.\n\n## Why reinvent su-exec?\n**goinsu** is written in the D programming language, which is a high-level programming language with metaprogramming, CTFE, and other cool things you can't find in C.\n\n## betterC?\n\nYep. goinsu written in a subset of the D programming language, called betterC. Just google for it, ya' know.\n\n## Alternatives\n\nYou can use `gosu` or `su-exec`, but they aren't as cool as **goinsu**.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmeep%2Fgoinsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonmeep%2Fgoinsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmeep%2Fgoinsu/lists"}