Bug 1348533 - sudo parses sudoers config with user's locale
Summary: sudo parses sudoers config with user's locale
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: sudo
Version: 25
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Tomas Sykora
QA Contact:
URL:
Whiteboard:
Depends On: 1318374
Blocks: 1348504
TreeView+ depends on / blocked
 
Reported: 2016-06-21 12:03 UTC by Daniel Kopeček
Modified: 2017-02-21 12:02 UTC (History)
7 users (show)

Fixed In Version:
Clone Of: 1318374
Environment:
Last Closed: 2017-02-21 12:02:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A patch solving described problem. (1017 bytes, patch)
2016-07-07 07:18 UTC, Tomas Sykora
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.