{"id":21402178,"url":"https://github.com/al-alamysploit/termux-sudo","last_synced_at":"2026-03-06T17:05:55.883Z","repository":{"id":250996476,"uuid":"260451565","full_name":"AL-AlamySploit/termux-sudo","owner":"AL-AlamySploit","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-01T13:21:13.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T18:52:15.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AL-AlamySploit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-01T12:15:31.000Z","updated_at":"2024-08-15T11:27:24.000Z","dependencies_parsed_at":"2024-07-31T07:46:38.415Z","dependency_job_id":"2d314212-50da-4d08-b97c-51eb085f0bf9","html_url":"https://github.com/AL-AlamySploit/termux-sudo","commit_stats":null,"previous_names":["al-alamysploit/termux-sudo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AL-AlamySploit/termux-sudo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AL-AlamySploit%2Ftermux-sudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AL-AlamySploit%2Ftermux-sudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AL-AlamySploit%2Ftermux-sudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AL-AlamySploit%2Ftermux-sudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AL-AlamySploit","download_url":"https://codeload.github.com/AL-AlamySploit/termux-sudo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AL-AlamySploit%2Ftermux-sudo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30186781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-22T15:35:30.277Z","updated_at":"2026-03-06T17:05:50.870Z","avatar_url":"https://github.com/AL-AlamySploit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termux-sudo\nA bash script that provides sudo for Termux  \nTermux is a terminal emulator and Linux environment for Android\n\n**Note**\n\ntermux-sudo was originally hosted on GitHub.  \nDue to the fact that Microsoft is purchasing GitHub, I have decided to move it here.\n\n**Requirements**\n\nRooted phone with su binary  \nSUDO WILL NOT WORK WITHOUT SU\n\n**Installing sudo**\n\n1. Clone termux-sudo or download to phone and extract\n2. Open Termux\n3. Install a dependency needed for sudo:\n   ```pkg install ncurses-utils```\n4. Change to cloned or extraction directory\n5. Execute the following commands to place sudo into the correct directory with the proper permissions and ownership\n\n```\ncat sudo \u003e /data/data/com.termux/files/usr/bin/sudo\nchmod 700 /data/data/com.termux/files/usr/bin/sudo\n```\n**Power Root**\n```\nsudo whoami\nsudo su\n```\n\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- [option] Can turn off colored error messages be editing the variable ```colored``` at the beginning of sudo file\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal-alamysploit%2Ftermux-sudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal-alamysploit%2Ftermux-sudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal-alamysploit%2Ftermux-sudo/lists"}