Jump to content

sudo password prompt timeout not working as expected


djurny

Recommended Posts

Hi,

On my orangepi zero (256MB) running armbian image, I am observing some odd behavior that I do not fully understand.

Spoiler

Linux sinaspi 5.10.16-sunxi #21.02.2 SMP Sun Feb 14 21:12:17 CET 2021 armv7l GNU/Linux

Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

 

http://ix.io/3mQX

 

In an effort to 'harden' the orangepi zero configuration (by making the user experience annoying), I have shortened the sudo password prompt timeout. On the orangepi zero board, the following setting results in a timeout of only 2 seconds, instead of 15 seconds:

 

#[BEGIN] Ansible managed
## DMZ special: Authentication always required except for TOOLS
djurny ALL = (root) PASSWD: ALL, NOPASSWD: TOOLS

## DMZ special: Stricter timeout settings
Defaults:djurny passwd_timeout=0.25
Defaults:djurny timestamp_timeout=0

Defaults:djurny !logfile
Defaults:djurny !syslog
#[END]

 

The exact same setting works as expected on raspberrypi and also as expected on nanopi R2S (armbian). Even more odd, setting the timeout to 1, the timeout is indeed set to 1 minute. Setting it to any fractional value like 0.3 or 0.5 it seems that the timeout calculation/interpretation is just not working as per manpage.

 

I'm not blocked by this, but if this is something that can be fixed easily, I will. For now, I've just the timeout to 1 minute (still more annoying than 15 minute timeout :-)

 

Anyone have experienced this as well?

 

Groetjes,

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines