Red Hat Bugzilla – Bug 1261998
visudo accept non valid content
Last modified: 2016-11-03 16:31:46 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ sudo visudo
2. do some syntax error in the file
4. you will get "visudo: >>> /etc/sudoers: syntax error near line 119 <<<"
6. type "e" to edit again
6. $ sudo
7. you will get "sudo: >>> /etc/sudoers: syntax error near line 119 <<<"
You will get sudoers with syntax error
File with syntax error should not be saved.
Reproduced. It's too late for 7.3, so I'll fix that in rhel-7.3.
Created attachment 1073595 [details]
patch that resolves acceptation of incorrect sudoers file in visudo
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.