Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[SCRIPT] sudo for Android (requires bash)

$
0
0
There's not a lot to explain here. Just a small novelty script I created on my spare time for fun that essentially does the same thing as sudo on desktop Linux. Each user / app gets its own password which you can set on first run or by typing "sudo passwd"

Usage:
Sudo <command> run single command as root, prompt for password to execute
Sudo passwd - change password for current user
Sudo --usage gives usage info


This is more of a novelty item than anything and isn't particularly practical since you can still just invoke root with su. Passwords are also stored in plain text in /sdcard so it's not exactly secure. But that being said here's the DL link


sudo for Android


Just place the script in /system/bin and chmod it 755.


This script also requires you have bash in /system/xbin, so stock ROMs are unlikely to work without some tinkering.

That being said, enjoy!

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>