On Mon, 2014-04-07 at 11:40 +0200, Angel Bosch wrote:
I'm aware of that but I need some machines to be able to
enumerate all
users for some cron scripts.
Note that if the cron jobs you need to run is for a specified subset of
user, you could query explicitly those users in a root cron job :)
instead of turning on enumeration.
If those users are in a specific group it is quite simple:
pull-users.sh:
#!/bin/bash
IFS=","
users=`getent group mycrongroup | cut -d ":" -f 4`
for u in $users; do getent passwd $u; done
HTH,
Simo.
--
Simo Sorce * Red Hat, Inc * New York