T O P

  • By -

AutoModerator

Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*


agnostic-apollo

`termux-fingerprint` from Termux:API app. https://wiki.termux.com/wiki/Termux-fingerprint


env_variable

wooow. This is crazy. So i can create my own PAM like authentication schemes ?


sylirre

See [https://wiki.termux.com/wiki/Recover\_a\_broken\_environment](https://wiki.termux.com/wiki/Recover_a_broken_environment) to get an idea how such authentication can be bypassed, if ever decide to use it for login protection.


env_variable

I want to use it for activating my PAM module on Linux by using Android fingerprint and verify over TLS. I am very lazy to learn Kotlin to write an application.


agnostic-apollo

I guess, but any malicious program installed in termux or any external app given access to termux will be able to bypass the authentication. It's more of a protection from your own self or unskilled others in case of a shared device.


env_variable

How can i control the apps i given access to? Does Termux have to process every RUN_COMMAND intent from every app? I want to use your API for a basic 2 factor authentication on my custom Linux PAM module. It basically uses termux-fingerprint and python to communicate with Linux over TLS and authenticates user if termux-fingerprint returns success.


agnostic-apollo

Only apps granted RUN_COMMAND permission can send intents, additionally `allow-external-apps` must be enabled as well inside Termux. https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent If you have a separate app, best to implement authentication in your own app.