[augeas-devel] sudoers lens not working

Robin Lee Powell rlpowell at digitalkingdom.org
Fri Mar 20 02:50:42 UTC 2009


On Thu, Mar 19, 2009 at 10:16:57PM -0400, Frank Sweetser wrote:
>
> I'm trying to set up my sudoers file with augeas on CentOS 5.2, and I 
> don't seem to be having much luck with it.  augtool appears to just not 
> even realize that the file is there.
>
> [root at trapeze ~]# augtool
> augtool> ls /files/etc/sudoers
> augtool>
>
> But the sudoers file is definitely there.
>
> [root at trapeze ~]# ls -l /etc/sudoers
> -rw-r----- 1 root root 3186 May 24  2008 /etc/sudoers
>
> I'm having this problem with 0.4.2.  Anybody have any suggestions for  
> troubleshooting?

That means that augeas can't parse it.  Look under
"/augeas/files/etc/sudoers/" to see why, although I've gotta say
that Augeas' parse errors are generally entirely unhelpful:

augtool> ls /augeas/files/etc/sudoers/error/
pos = 2587
message = Short iteration

It's the one thing I don't like about it.  At least give me a line
number.  :(

-Robin

-- 
They say:  "The first AIs will be built by the military as weapons."
And I'm thinking:  "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/




More information about the augeas-devel mailing list