Bug 1318374

Summary: sudo parses sudoers config with user's locale
Product: Red Hat Enterprise Linux 6 Reporter: Dalibor Pospíšil <dapospis>
Component: sudoAssignee: Tomas Sykora <tosykora>
Status: CLOSED ERRATA QA Contact: Patrik Kis <pkis>
Severity: high Docs Contact:
Priority: medium    
Version: 6.8CC: dkopecek, pkis, pvrabec, tosykora
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sudo-1.8.6p3-25.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1348504 1348533 (view as bug list) Environment:
Last Closed: 2017-03-21 11:01:56 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:    
Bug Blocks: 1348504, 1348533    
Attachments:
Description Flags
Sudoers-locale patch none

Description Dalibor Pospíšil 2016-03-16 16:50:34 UTC
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 4 Tomas Sykora 2016-07-19 08:12:49 UTC
Created attachment 1181472 [details]
Sudoers-locale patch

The patch for rhel is diffrent from the upstream version.

Comment 10 errata-xmlrpc 2017-03-21 11:01:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0704.html