Knowledge Base
Searching in : Article
ID: AR06D00399
Applies to: NX Server Products
Added on: 2006-06-26
Last Update: 2013-01-17

How to improve the frequency of the expired guest accounts' removal

Starting from version 2.0.0, NX Server provides the support for guest accounts which are created and removed automatically by the server according to its configuration settings.

However, since nxserver is not a daemon that can monitor all the time which account is expired and has to be deleted from system, the cleaning operations are performed when a guest user is connecting to the server.

If the administrator would like to verify and remove the guest accounts already expired, he needs to run the following command:

/usr/NX/bin/nxserver --userlist --guest

The frequency of the the cleaning operations can be improved by scheduling the execution of the command above in a cron job.

For example, if you want to check the expired guest accounts daily and at 5 minutes after Midnight, you need to add the following line in the root crontab:

5 0 * * * /usr/NX/bin/nxserver --userlist --guest