Use the following syntax in the EXEC_STRING:
EXEC_STRING dtaction -user user_name action_name [file_argument]
The new user (user_name) must have display access to the system through one of the following mechanisms:
Read permission on the login user's .Xauthority file
Or, xhost permission
For example, the following two actions provide the ability to become root and edit an app-defaults file.
ACTION AppDefaults { WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dtaction -user root \ EditAppDefaults %Arg_1"File:"% } ACTION EditAppDefaults { WINDOW_TYPE TERMINAL EXEC_STRING /bin/sh -c 'chmod +w %Arg_1%; \ vi %Arg_1%; chmod -w %Arg_1%' }