Bugzilla – Bug 748
sudo parses sudoers config with user's locale
Last modified: 2016-12-20 06:12:58 MST
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. 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: Tested on the latest stable release. I also tried to set sudoers_locale but it had no effect on this issue.
What distro and version of Linux are you running? I can't seem to reproduce this on Ubuntu 16.04 and sudo 1.8.17.
Never mind, I can reproduce this on CentOS 7.
Fixed by https://www.sudo.ws/repos/sudo/rev/c8deb0da75b4
I believe that sudo 1.8.18 fixes the locale issues.
Sorry guys, closed this by mistake (thought I was on a different bug).