User Tools

Site Tools


augeas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
augeas [2015/10/15 12:07]
ian created
augeas [2020/02/13 22:55] (current)
Line 5: Line 5:
 <code> <code>
 augtool --backup <<END augtool --backup <<END
-rename /files/etc/ssh/sshd_config/#comment[.="PermitRootLogin yes"] PermitRootLogin+rename /files/etc/ssh/sshd_config/#comment[. =~ regexp('PermitRootLogin.*')] PermitRootLogin
 set /files/etc/ssh/sshd_config/PermitRootLogin without-password set /files/etc/ssh/sshd_config/PermitRootLogin without-password
 save save
Line 15: Line 15:
 <code> <code>
 :~# augtool --backup :~# augtool --backup
-augtool> set /augeas/load/Shellvars/incl[last()] "/etc/exim4/update-exim4.conf.conf"+augtool> set /augeas/load/Shellvars/incl[last()+1] "/etc/exim4/update-exim4.conf.conf"
 augtool> load augtool> load
 augtool> set /files/etc/exim4/update-exim4.conf.conf/dc_smarthost 'mail.domain.com' augtool> set /files/etc/exim4/update-exim4.conf.conf/dc_smarthost 'mail.domain.com'
augeas.1444925260.txt.gz ยท Last modified: 2020/02/13 22:55 (external edit)

free spam filter