XSUSockD is a daemon which runs non-interactive commands (e.g. system commands). It reads a configuration file which specifies a hash table, where you define an alias for every command that the daemon will be able to execute. When a connection is established, the daemon forks and presents a communication protocol very similar to POP3. The user is authenticated (using PAM), then the user sends the command alias to execute and quit. After every command alias is executed, the daemon returns the exit code of the command. When the command is executed, the standard and error outputs are redirected to syslog.