{"id":28566302,"url":"https://github.com/b3yc0d3/exas","last_synced_at":"2025-07-08T04:04:31.631Z","repository":{"id":200362591,"uuid":"703595361","full_name":"b3yc0d3/exas","owner":"b3yc0d3","description":"Execute commands as another user","archived":false,"fork":false,"pushed_at":"2023-12-17T16:39:17.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T15:09:40.068Z","etag":null,"topics":["cli","command-executor","command-line-tool","exas","work-in-progress"],"latest_commit_sha":null,"homepage":"","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/b3yc0d3.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}},"created_at":"2023-10-11T14:33:41.000Z","updated_at":"2024-05-01T21:35:41.000Z","dependencies_parsed_at":"2023-12-17T14:43:51.621Z","dependency_job_id":null,"html_url":"https://github.com/b3yc0d3/exas","commit_stats":null,"previous_names":["b3yc0d3/exas"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/b3yc0d3/exas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3yc0d3%2Fexas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3yc0d3%2Fexas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3yc0d3%2Fexas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3yc0d3%2Fexas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b3yc0d3","download_url":"https://codeload.github.com/b3yc0d3/exas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3yc0d3%2Fexas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264192229,"owners_count":23570737,"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","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":["cli","command-executor","command-line-tool","exas","work-in-progress"],"created_at":"2025-06-10T15:09:40.184Z","updated_at":"2025-07-08T04:04:31.610Z","avatar_url":"https://github.com/b3yc0d3.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exas\n\n`exas` is a minimalist alternative for `sudo(8)`[^1] and `doas(1)`[^2] that\nallows the execution of commands as another user.\n\nThe configuration is done before compiling, following the principles of\n[suckless.org](https://suckless.org) software, through a header file.\n\n\u003e [!WARNING]\n\u003e This software is unfinished. Keep your expectations low.\n\u003e Help to improve exas by contributing.\n\n## Getting Started\n\nIn this section we will guide you trough the easy process of building `exas`\nfrom source, 'cuase there aren't any package versions of it.\n\n### Prerequisites\n\nThe things you need before installing the software.\n\n* GNU Make Utility\n* Clang (can be changed in the *config.mk*)\n\n### Configuration\nAs mentioned in the intro text, `exas` if configured through a specific\nheader file that is called `config.h` (which is a copy of `config.def.h`).\n\nBy default the `config.h` looks like the following sniped. It allows **all**\nusers that are in the group of *wheel* to execute any command as root.\n\n```c\nstatic const Rule rules[] = {\n    /* permit   user    group      target user   command     arguments */\n    { true,     NULL,   \"wheel\",   \"root\",       NULL,       NULL},\n};\n```\n\nLets explain what which \"parameter\" does and what value it takes.\n\npermit\n: Whether the rule **allows** or **denys** the execution of a match.\u003cbr\u003e\n    Takes a bool value of \u003cabbr title=\"(int) 1\"\u003e`true`\u003c/abbr\u003e or \u003cabbr title=\"(int) 0\"\u003e`false`\u003c/abbr\u003e.\n    \n\nuser\n: Name of user that should be matched by the rule.\u003cbr\u003e\n    Takes an `char *`. If set to `NULL`, no user name matching will be done.\n\ngroup\n: Name of group that should be matched by the rule.\u003cbr\u003e\n    Takes an `char *`. If set to `NULL`, no group name matching will be done.\n\ntarget user\n: Name of user to execute as.\u003cbr\u003e\n    Takes an `char *`. If set to `NULL`, the rule will allow *any* target user.\n\ncommand\n: Command that should be matched by the rule.\u003cbr\u003e\n    Takes an `char *`. If set to `NULL`, the rule will not check for a command.\n\narguments\n: Arguments for `command`.\u003cbr\u003e\n    Takes an array of `char **`. If set to `NULL`, the rule will not check for any arguments.\n\n### Build Process\n1. Clone exas repository\n    ```shell\n    git clone https://github.com/b3yc0d3/exas.git\n    cd exas\n    ```\n\n2. Initial exas build using gmake\n    ```shell\n    gmake\n    ```\n\n3. Edit the configuration in `config.h`\u003cbr\u003e\n    The default configuration allows all members of the `wheels` group to execute any command as *root*.\n    \u003cbr\u003e\n    *See [**Configuration**](#configuration) section*\n\n4. Build exas using gmake\n    ```shell\n    gmake\n    ```\n\n\n### Installation\nInstallation requires the steps from [Build Process](#build-process).\n\n\u003cmark\u003eYou most likely need to run the following command(s) with root privileges\u003c/mark\u003e\n\nIn order to install `exas` globally on your system, as any other software,\nsimple run the following command\n\n```shell\ngmake clean install\n```\n\nOptionally `DESTDIR` can be set.\n\n```shell\ngmake DESTDIR=/your/installation/path clean install\n```\n\n\n## Usage\n\n```\nUsage: exas [-u user] -- command [args ...]\n\nOptions:\n   -u user    specify user to execute as\n\nParameters\n   command    command that should be executed\n   args       zero or more arguments for ``command``\n```\n\nA few examples of how to use `exas`.\n\n```\nexas -- pacman -Syu\n```\n\nFor more information, read the manual page of exas\n\n```shell\nman exas\n```\n\n## License\nThis project is licensed under the ISC-License. See `LICENSE` file for more\ninformations.\n\n[^1]: [Linux Manual Page](https://man.archlinux.org/man/sudo.8.en)  - [Source](https://github.com/sudo-project/sudo) - [Project Site](https://www.sudo.ws/)\n[^2]: [OpenBSD Manual Page](https://man.openbsd.org/doas) - [Source](https://cvsweb.openbsd.org/src/usr.bin/doas/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3yc0d3%2Fexas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3yc0d3%2Fexas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3yc0d3%2Fexas/lists"}