Setting a number with a fractional part as the value to the timestamp_timeout option in /etc/sudoers makes sudo complain about it, not honor the desired timeout and behave as if the value was set to a negative number (ultimately making the timestamp not expiring at all).
% sudo sleep 1
sudo: value `2.5' is invalid for option `timestamp_timeout'
% sudo -l
sudo: value `2.5' is invalid for option `timestamp_timeout'
Matching Defaults entries for user on user-X550CL:
env_reset, timestamp_timeout=2.5, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User user may run the following commands on user-X550CL:
(ALL : ALL) ALL
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: sudo 1.8.12-1ubuntu3
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Mar 26 23:36:41 2016
InstallationDate: Installed on 2016-02-16 (39 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no username)
XDG_RUNTIME_DIR=<set>
LANG=it_IT.UTF-8
SHELL=/usr/bin/zsh
SourcePackage: sudo
UpgradeStatus: No upgrade log present (probably fresh install)
VisudoCheck:
/etc/sudoers: parsed OK
/etc/sudoers.d/README: parsed OK
modified.conffile..etc.sudoers: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers']
modified.conffile..etc.sudoers.d.README: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers.d/README']
% lsb_release -rd archive. ubuntu. com/ubuntu/ wily/main amd64 Packages dpkg/status
Description: Ubuntu 15.10
Release: 15.10
user@user-X550CL ~ % apt-cache policy sudo
sudo:
Installed: 1.8.12-1ubuntu3
Candidate: 1.8.12-1ubuntu3
Version table:
*** 1.8.12-1ubuntu3 0
500 http://
100 /var/lib/
---
Setting a number with a fractional part as the value to the timestamp_timeout option in /etc/sudoers makes sudo complain about it, not honor the desired timeout and behave as if the value was set to a negative number (ultimately making the timestamp not expiring at all).
% sudo sleep 1 timeout= 2.5, mail_badpass, path=/usr/ local/sbin\ :/usr/local/ bin\:/usr/ sbin\:/ usr/bin\ :/sbin\ :/bin
sudo: value `2.5' is invalid for option `timestamp_timeout'
% sudo -l
sudo: value `2.5' is invalid for option `timestamp_timeout'
Matching Defaults entries for user on user-X550CL:
env_reset, timestamp_
secure_
User user may run the following commands on user-X550CL:
(ALL : ALL) ALL
ProblemType: Bug ature: Ubuntu 4.2.0-16.19-generic 4.2.3 dules: nvidia 256color DIR=<set> d/README: parsed OK conffile. .etc.sudoers: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers'] conffile. .etc.sudoers. d.README: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers. d/README' ]
DistroRelease: Ubuntu 15.10
Package: sudo 1.8.12-1ubuntu3
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Mar 26 23:36:41 2016
InstallationDate: Installed on 2016-02-16 (39 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcEnviron:
TERM=xterm-
PATH=(custom, no username)
XDG_RUNTIME_
LANG=it_IT.UTF-8
SHELL=/usr/bin/zsh
SourcePackage: sudo
UpgradeStatus: No upgrade log present (probably fresh install)
VisudoCheck:
/etc/sudoers: parsed OK
/etc/sudoers.
modified.
modified.