SCIENTIFIC-LINUX-DEVEL Archives

December 2013

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Sternberger, Sven" <[log in to unmask]>
Reply To:
Sternberger, Sven
Date:
Fri, 6 Dec 2013 13:00:49 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
Hello!

I use in my /etc/sudoers config file a line like this

ALL ALL=NOPASSWD: /path/to/command

to allow all user to execute a command as root without password.

With the update to augeas 1.0.0-5.el6 this can't be parsed/produced 
by augeas anymore due to a bug in the related lens.

The problem is that aliases with capital letters are not
allowed (btw. also no user groups with capital letters)

As there is no epel version of augeas for el6 it would be nice if
this could be fixed or send to TUV

Lens File:
/usr/share/augeas/lenses/dist/sudoers.aug

1.0.0-5.el6 version (buggy):
----------------------------
let sto_to_com_user =
      let nis_re = /([A-Z]([-A-Z0-9]|(\\\\[ \t]))*+\\\\\\\\)/
   in let user_re = /[%+@a-z]([-a-z0-9]|(\\\\[ \t]))*/
   in store (nis_re? . user_re)


1.1 version (correct): 
----------------------
let sto_to_com_user =
      let nis_re = /([A-Z]([-A-Z0-9]|(\\\\[ \t]))*+\\\\\\\\)/
   in let user_re = /[%+@a-z]([-a-z0-9._]|(\\\\[ \t]))*/
   in let alias_re = /[A-Z_]+/
   in store ((nis_re? . user_re) | alias_re)

regards

sven

ATOM RSS1 RSS2