[FreeNX-kNX] Bug/suggestion
Matthew S. Harris
mharris at google.com
Tue Jul 19 22:03:52 UTC 2005
Hello,
The nxserver and nxloadconfig scripts, in a number of places, do variants of
getent passwd | egrep -q "^$USERNAME:"
to determine whether the given user exists. But when this is run on a
network with a large number of users, fetching the entire user list over
the network can be very slow. In my case, the user list is silently
truncated after a point, so it may not even find the user.
Better is simply to
getent passwd "$USERNAME" 2>&1 >/dev/null
This still returns true when the user exists, can be much faster, and
actually works for me.
Great product. Thanks.
Matthew Harris
More information about the FreeNX-kNX
mailing list