Print

Console Command - gui-user

The gui-user console command allows the user to modify GUI user settings from the command line. The general structure of the command is:

gui-user action options

Action

The action must be one of the following:

Options

Can be any combination of the following:

When the command is run, an exit code is returned. Any relevant details for a failure are passed to stderr. A list of possible returned exit codes:

Examples

Command Usage
gui-user --edit test-user --status disabled Edits an existing user named test-user and disables the user. This command exits with code 0.
gui-user –e test-user –u fred Edits an existing user named test-user and changes the username to fred using the shorthand options. This command exits with code 0.
gui-user –d test-user Deletes a user named test-user using shorthand options.
noteNote

While this command is syntactically correct if you follow the progression from the previous examples, the command fails. This error occurs because the user named test-user was renamed to fred. The user was renamed to fred in the first example. Therefore, the command fails with error code 3.

gui-user –e test-user –p password Changes the password.