Unable to set a number with a fractional part as the value to the timestamp_timeout option in /etc/sudoers when using Italian locale (possibly other locales will be affected as well)

Bug #1562419 reported by kos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
New
Undecided
Unassigned

Bug Description

% lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
% apt-cache policy sudo
sudo:
  Installed: 1.8.12-1ubuntu3
  Candidate: 1.8.12-1ubuntu3
  Version table:
 *** 1.8.12-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

---

When using Italian locale (possibly other locales will be affected as well), 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 timestamp_timeout wasn't set at all: after the expiration of the first timestamp sudo stops complaining about it, but the desired timeout is still not honored.

% 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']

Revision history for this message
kos (kos00) wrote :
kos (kos00)
description: updated
kos (kos00)
description: updated
Revision history for this message
kos (kos00) wrote :

Ok, the issue seems to be related to the locale in use.

Namely this seems to be happening when using Italian locale (possibly other locales will be affected as well), where commas (as opposed to dots) are used to separate the decimal part of a figure.

Booting the ISOs of Trusty / Unity, Wily / Unity and Wily / GNOME choosing Italian as the language the issue is always present, while booting choosing English as the language the issue is never present.

So to reproduce: simply boot one of the Trusty / Unity, Wily / Unity or Wily / GNOME ISOs (most likely all other ISOs will be affected as well) choosing Italian as the language, open Terminal, run sudo visudo, add a line "Defaults timestamp_timeout=2.5", save, exit and try to run a sudo command (e.g. sudo -l).

description: updated
description: updated
summary: Unable to set a number with a fractional part as the value to the
- timestamp_timeout option in /etc/sudoers
+ timestamp_timeout option in /etc/sudoers when using Italian locale
+ (possibly other locales will be affected as well)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.