{"id":24685101,"url":"https://github.com/xicor22/sudo-su-termux","last_synced_at":"2025-10-08T14:30:45.117Z","repository":{"id":41129523,"uuid":"271806231","full_name":"xicor22/Sudo-su-Termux","owner":"xicor22","description":"Easy way to install sudo functionality in termux","archived":false,"fork":false,"pushed_at":"2020-06-13T18:12:57.000Z","size":18,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-03T16:21:33.765Z","etag":null,"topics":["shell","sudo","termux-tool","tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xicor22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-12T13:34:59.000Z","updated_at":"2023-10-25T23:12:26.000Z","dependencies_parsed_at":"2022-09-07T23:40:14.706Z","dependency_job_id":null,"html_url":"https://github.com/xicor22/Sudo-su-Termux","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xicor22%2FSudo-su-Termux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xicor22%2FSudo-su-Termux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xicor22%2FSudo-su-Termux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xicor22%2FSudo-su-Termux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xicor22","download_url":"https://codeload.github.com/xicor22/Sudo-su-Termux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235718816,"owners_count":19034670,"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":["shell","sudo","termux-tool","tool"],"created_at":"2025-01-26T15:17:52.522Z","updated_at":"2025-10-08T14:30:44.666Z","avatar_url":"https://github.com/xicor22.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Sudo-su-Termux\nA bash script to install the sudo functionality in termux.\n\n**Requirements**\n\nThe device must be rooted else this will not work.\n\n**Installing sudo**\n\n1. Open termux \n2. Execute this command \n```\nwget https://raw.githubusercontent.com/xicor22/Sudo-su-Termux/master/install.sh \u003e/dev/null 2\u003e\u00261 \u0026\u0026 chmod +x install.sh \u0026\u0026 ./install.sh\n```\n3. Done!\n\n**Features**\n\n- Sets up its environment automatically on first run, no need to do anything but use it\n- Creates a root folder ```.suroot``` in the Termux home folder with proper root permissions and ownership\n- Creates ```.bashrc``` file in root folder with proper PATH and LD_LIBRARY_PATH variables set so all binaries function correctly\n- Bash prompt PS1 variable is also set so you don't have ```bash-4.4#``` as prompt just ```#```\n- Automatically creates ```.bash_history``` in root folder when you drop to a root shell so root shell history is preserved\n- Can be used like ordinary sudo (but only as root, no other user)\n- Can drop to root shell ```sudo su [-]```\n- Runs built in Termux binaries and exteral binaries with optional arguments as root in current directory\n- Generates output in shell currently using\n- Can be used in other bash scripts\n\n```\nUsage:\n\nsudo su [-]  \n  Drop to root shell\n\nsudo \u003ccommand\u003e [\u003cargs\u003e]  \n  Run command as root with optional arguments\n```\n\n**This was inspired by the following:**\n\nhttps://gitlab.com/st42/termux-sudo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxicor22%2Fsudo-su-termux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxicor22%2Fsudo-su-termux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxicor22%2Fsudo-su-termux/lists"}