[augeas-devel] augtool set - doesn't work

Raphaël Pinson raphink at gmail.com
Fri Nov 11 11:26:00 UTC 2011


Hello,

It seems indeed like autosave is broken (in 0.8.0 at least, what version
are you using?).

One way to get it to work is to pipe a save command:


echo -e "set /files/etc/ssh/sshd_config/PermitRootLogin "no"\nsave" |
augtool


I'll try to investigate the bug when I get some time.


Raphaël



On Fri, Nov 11, 2011 at 11:52 AM, Biltong <biltong at fastmail.fm> wrote:

> I'm misunderstanding something here.
>
> # augtool get /files/etc/ssh/sshd_config/PermitRootLogin
> /files/etc/ssh/sshd_config/PermitRootLogin = without-password
> # augtool set /files/etc/ssh/sshd_config/PermitRootLogin "no"
> # augtool get /files/etc/ssh/sshd_config/PermitRootLogin
> /files/etc/ssh/sshd_config/PermitRootLogin = without-password
>
> Trying again, this time with -s to save.
>
> # augtool get /files/etc/ssh/sshd_config/PermitRootLogin
> /files/etc/ssh/sshd_config/PermitRootLogin = without-password
> # augtool -s set /files/etc/ssh/sshd_config/PermitRootLogin "no"
> # augtool get /files/etc/ssh/sshd_config/PermitRootLogin
> /files/etc/ssh/sshd_config/PermitRootLogin = without-password
>
> Works with the augtool shell.
>
> Confused.
>
> --
>  Biltong
>  biltong at fastmail.fm
>
> --
> http://www.fastmail.fm - Access all of your messages and folders
>                          wherever you are
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20111111/ba0aee65/attachment.htm>


More information about the augeas-devel mailing list