<div dir="ltr">Hello Kent,<div><br></div><div>You don't need to modify the lens in order to test it againt your file. You can just tell Augeas to use this lens for this file. In Augeas >= 1.0.0, you can use:</div><div>
<br></div><div>    augtool --transform "Shellvars.lns incl <span style="font-family:arial,sans-serif;font-size:13px">/etc/rkhunter.conf"</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If your file is present in this location, you should see one of these two:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">* Parsed content in /files/etc/rkhunter.conf</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">* Errors in /augeas/files/etc/rkhunter.conf/error</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">The only case that I can think of where you wouldn't see any of these (besides the file being absent/empty) is if you're using Augeas 0.7.X, which had a bug in parse error reporting.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Cheers,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Raphaël Pinson</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 11:33 PM, Kent Brede <span dir="ltr"><<a href="mailto:kbrede@unomaha.edu" target="_blank">kbrede@unomaha.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm just getting started with Augeas.  Decided I'd like to use it for /etc/rkhunter.conf.  It looks to me like shellvars.aug should work for the file.  I tried a quick test to see if it would work by adding ". incl "/etc/rkhunter.conf"" under "filter_misc" to shellvars.aug.  I realize this isn't probably the approved way of going about this.<br>

<br>
What I don't understand is, why doesn't "augtool print /files/etc/rkhunter.conf" report anything back?  I see nothing in /augeas//error.<br>
<br>
--<br>
Kent Brede<br>
UNO Linux System Administrator<br>
<a href="mailto:kbrede@unomaha.edu">kbrede@unomaha.edu</a><br>
<br>
_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Raphaël Pinson<div>Infrastructure Developer & Trainer</div><div>+33 479 26 57 93<div>+33 781 90 00 79</div><div><br></div><div>Camptocamp France<br>

Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
</div></div></div>
</div>