To disable operations from a command line, set the /desktop/gnome/lockdown/disable_command_line key to true.
When you disable command line operations, the following changes occur in the user interface:
The Run Application menu item is removed from the following menus:
Any Run buttons on panels are disabled.
To disable command line operations, you must also remove menu items that start terminal applications. For example, you might want to remove menu items that contain the following commands from the menus:
The items are removed from the following menus:
To disable command line operations, you must also disable the Command Line applet. To disable the Command Line applet, add the applet to the /apps/panel/global/disabled_applets key. When you disable the Command Line applet, the Command Line applet is removed from the Main Menu and the Add to Panel ▸ Utility menu.