[augeas-devel] /etc/security/limits.conf
Dominic Cleal
dcleal at redhat.com
Thu May 2 14:41:46 UTC 2013
On 02/05/13 15:34, Sam Darwin wrote:
> I would like to add/update these entries into /etc/security/limits.conf
>
> * soft nofile 64000
> * hard nofile 64000
>
> Using a command like this:
>
> augtool -s set /files/etc/security/limits.conf/\*/soft/nofile 64000
>
> which is not line order dependent. if I use domain[1] , that
> assumes I know the relevant line is 1, which I don't know.
>
> Can anyone help with the correct command syntax?
Try this:
set /files/etc/security/limits.conf/domain[.='*']/soft/nofile 64000
The expression in square brackets is comparing the value of the node
(the ".") to find the wildcard value.
--
Dominic Cleal
Red Hat Engineering
More information about the augeas-devel
mailing list