[augeas-devel] sudoers lens not working

Raphaël Pinson raphink at gmail.com
Fri Mar 20 18:46:40 UTC 2009


On Fri, Mar 20, 2009 at 7:39 PM, David Lutterkort <lutter at redhat.com> wrote:

> On Fri, 2009-03-20 at 09:26 -0400, Frank Sweetser wrote:
> > [root at trapeze etc]# dd if=/etc/sudoers bs=1 skip=1848 | head -10
> > Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
> >                    LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
> >                    LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION
> \
> >                    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME
> LC_NUMERIC \
> >                    LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS
> \
> >                    _XKB_CHARSET XAUTHORITY"
>
> Not that it fixes this problem, but on my F10 machine, /etc/sudoers uses
> this syntax to build env_keep:
>
> Defaults    env_keep =  "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR
> LS_COLORS"
> Defaults    env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS
> LC_CTYPE"
> Defaults    env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT
> LC_MESSAGES"
> Defaults    env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER
> LC_TELEPHONE"
> Defaults    env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET
> XAUTHORITY"
>


Ah, that's one of the syntaxes that made me not want to parse the contents
of Defaults further down... I had no clear idea of the way to properly
represent the "+=" in the tree.


 Raphaël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20090320/39a5072f/attachment.htm>


More information about the augeas-devel mailing list