Forum: CFEngine Help Subject: Re: read password hash from file Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,22971,22988#msg-22988
tuibelgium Wrote: ------------------------------------------------------- > R: hash1 > R: $(pwd[1]) > R: $(pwd[1]) > R: $(pwd[1]) > R: $(pwd[1]) > > How does it come it only works for the first user? You may want to try sticking something like a "keys" slist => getindices(pwd); and then reporting on $(keys) just to make sure the names being read in are what you'd expect. And report what the value of $(user) is, as that should be the number of lines read. And if you want to read the whole file, you may want to make the "4000" a little bigger, like maybe "inf". :) _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
