Score:1

Generic app for mobile confirmation?

cn flag

I am looking for a way to have a strong confirmation from the user during sensitive operations from the command line or trigger by cron (sensitive script, decryption, etc...). Is there a generic application or a simple way to get this confirmation from the user without having to develop a dedicated mobile application ? Ideally biometrically.

Thanks for your idea !

Score:1
vn flag

If I understand your need correctly, you could set up 2FA for typing passwords (including sudo).

For this to work you have to install and configure Google Authenticator (or similar app) on your phone (which is outside the scope of this site).

On Ubuntu, you have to do the following:

  1. Install google authenticator: sudo apt-get install libpam-google-authenticator

  2. Open the file /etc/pam.d/common-auth and look for the line:

    auth    [success=1 default=ignore]      pam_unix.so nullok_secure
    
  3. Above that line, add the following: (and then save and close):

    auth required pam_google_authenticator.so
    
  4. Run this command from the terminal: google-authenticator (and answer y to every question). Do this for all users that have to use this.

  5. After that, you'll get the secret key you can use to setup your Google Authenticator app on the phone.

  6. When this is setup, the configured users will now have to type in a 6-digit code in addition to the password when doing sudo operations.

Link to the full article.

cn flag
Thank you, it is very interesting I didn't know that. Unfortunately it is not exactly what I am looking for: - I would like to be able to interact on other actions than authentication - I want to be able to validate an action remotely, without having to connect to the machine (the action can be initiated by a third party or by a cron). So a simple yes/no could be enough.
Artur Meinild avatar
vn flag
I'm not aware of that kind of solution though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.