Well, this is really an easy one. I guess people just starting to get to know linux might find it a bit tricky though. The command is this:
find / -type f -perm -4000 -perm +0111 -print
The
-perm -4000
option matches files with the setuid bit set. And the
-perm +0111
option matches files for which any of the executable bits is set. This command might come handy if you've a rooted Android phone and would like to keep tabs on what executables get setuid root privileges (besides the apps that run something through
su
).
On my phone it gave this list:
/data/local/bash
/system/bin/bash
/system/bin/run-as
/system/xbin/su
I'm curious what was the original setting. I just might check it ...
I'll backup everything on the phone, wipe it back to factory default and check the permissions of these files. If I remember well, the two setuid
bash
instances came from
RootLogger.
Recent comments
2 years 23 weeks ago
3 years 45 weeks ago
3 years 45 weeks ago
3 years 47 weeks ago
3 years 48 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago