8.2 Adding the Per-Server and Per-User Profiles
The general format of the command is:
nxserver --ruleadd CLASS =TYPE --value=yes|no|value OPTION
CLASS can be any of the following classes:
--session specifies the session type to which the rule has to be applied.
--service specifies any of the available services, as media and printers.
--feature specifies a particular feature to be allowed/forbidden.
TYPE is any of the following types, available for each class. According to the type, the rule can allow/forbid or set a value, for example the path to the script to be executed at session startup, or the value limiting the bandwidth available for that user.
--session available TYPES are: unix-application value: yes|no
unix-cde value: yes|no
unix-console value: yes|no
unix-default value: yes|no
unix-desktop value: yes|no
unix-kde value: yes|no
unix-gnome value: yes|no
shadow value: yes|no
unix-xdm value: yes|no
unix-script value: path to the script
windows value: yes|no
vnc value: yes|no
--node TYPE is: node:port value: yes|no
--service available TYPES are: media value: yes|no
printers value: yes|no
shares value: yes|no
--feature available TYPES are: bandwidth value: value, e.g. 256k
client-clipboard value: yes|no
server-clipboard value: yes|no
OPTION can be any of the following options:
--system allows to set the rule for the server. The rule will be applied to
the whole NX System and to every user accessing it.
--user=USERNAME allows to set the rule on a per-user basis. The rule will be
applied to the specified user only.
For example:
nxserver --ruleadd --session=unix-kde --value=yes --system
nxserver --ruleadd --session=unix-script
--value=/home/nxuser_test/X _window _system_startup_script
--user= nxuser_test
nxserver --ruleadd --node=127.0.0.1:22 --value=yes --user=nxuser_test
nxserver --ruleadd --feature=client-clipboard --value=no --system
nxserver --ruleadd --feature=bandwidth --value=256k --system