On 28/03/13 08:25, Tim Chen wrote: > Hi, > I'm trying to set up AllowUsers in sshd_config with augtool, but failed. > > I tried below: > augtool> set /files/etc/ssh/sshd_config/AllowUsers user > augtool> save > error: Failed to execute command > saving failed (run 'print /augeas//error' for details) > augtool> print /augeas//error > > The error log is attached. > > But commands like below can be saved without problem: > set /files/etc/ssh/sshd_config/Port 1022 > set /files/etc/ssh/sshd_config/PermitRootLogin no
The format of the tree is different for AllowUsers, AllowGroups etc, as the arguments are parsed into individual subnodes. The lens uses a sequence for each argument (numbered entries), so you want to do this instead: set /files/etc/ssh/sshd_config/AllowUsers/1 user If you have more entries to create, increment the number. -- Dominic Cleal Red Hat Engineering _______________________________________________ augeas-devel mailing list augeas-devel@redhat.com https://www.redhat.com/mailman/listinfo/augeas-devel