Bug 1348533

Summary: sudo parses sudoers config with user's locale
Product: [Fedora] Fedora Reporter: Daniel Kopeček <dkopecek>
Component: sudoAssignee: Tomas Sykora <tosykora>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 25CC: dapospis, dkopecek, kzak, pkis, qe-baseos-security, rsroka, tosykora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1318374 Environment:
Last Closed: 2017-02-21 12:02:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1318374    
Bug Blocks: 1348504    
Attachments:
Description Flags
A patch solving described problem. none

Description Daniel Kopeček 2016-06-21 12:03:26 UTC
+++ This bug was initially created as a clone of Bug #1318374 +++

Description of problem:
If user uses locale like cs_CZ.UTF-8 and sudo is configred to use passwd_timeout to seconds, like 0.1 = 6s. sudo command uses user's locale to parse this number and prints error message.

Version-Release number of selected component (if applicable):
sudo-1.8.6p3-19.el6

How reproducible:
100%

Steps to Reproduce:
1. # echo "Defaults passwd_timeout = 0.1" >> /etc/sudoers
2. $ LANG=cs_CZ.UTF-8 sudo bash

Actual results:
$ LANG=cs_CZ.UTF-8 sudo bash
sudo: value `0.1' is invalid for option `passwd_timeout'
[sudo] password for test:

Expected results:
$ LANG=cs_CZ.UTF-8 sudo bash
[sudo] password for test:

Comment 1 Tomas Sykora 2016-07-07 07:18:35 UTC
Created attachment 1177193 [details]
A patch solving described problem.

Comment 2 Jan Kurik 2016-07-26 05:09:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 3 Tomas Sykora 2017-02-21 12:02:38 UTC
This bug was fixed by upstream: https://www.sudo.ws/repos/sudo/rev/c8deb0da75b4. The sudoers locale is now set before parsing the sudoers file.