Thanks for the response Raphael.  I tried both version 1.0.0 and 1.1.0.  I get 
no information back from augtool.


[root@firefly ~]# augtool --transform "Shellvars.lns incl /etc/rkhunter.conf"
augtool> print /files/etc/rkhunter.conf
augtool>

The file is there.

[root@firefly ~]# ll /etc/rkhunter.conf
-rw-r----- 1 root root 39322 May 13  2012 /etc/rkhunter.conf

The file only contains comments, and options such as:

SUSPSCAN_THRESH=200
SUSPSCAN_DIRS="/tmp /var/tmp"



What am I missing?


--
Kent Brede
UNO Linux System Administrator
[email protected]
________________________________
From: Rapha?l Pinson <[email protected]>
Sent: Friday, April 04, 2014 4:47 AM
To: Kent Brede
Cc: [email protected]
Subject: Re: [augeas-devel] rkhunter.conf

Hello Kent,

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:

    augtool --transform "Shellvars.lns incl /etc/rkhunter.conf"

If your file is present in this location, you should see one of these two:

* Parsed content in /files/etc/rkhunter.conf
* Errors in /augeas/files/etc/rkhunter.conf/error

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.


Cheers,

Rapha?l Pinson



On Thu, Apr 3, 2014 at 11:33 PM, Kent Brede 
<[email protected]<mailto:[email protected]>> wrote:
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.

What I don't understand is, why doesn't "augtool print 
/files/etc/rkhunter.conf" report anything back?  I see nothing in 
/augeas//error.

--
Kent Brede
UNO Linux System Administrator
[email protected]<mailto:[email protected]>

_______________________________________________
augeas-devel mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/augeas-devel



--
Rapha?l Pinson
Infrastructure Developer & Trainer
+33 479 26 57 93
+33 781 90 00 79

Camptocamp France
Savoie Technolac
BP 352
48, avenue du Lac du Bourget
73372 Le Bourget du Lac, Cedex
www.camptocamp.com<http://www.camptocamp.com>
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to