• Skip to content
  • Skip to link menu
KDE::Enterprise Homepage
  • KDE::Enterprise / Articles
 
 

Tightening the Bolts a Little Bit More

While locking down configuration files is quite useful, KDE has a few more tricks to show you. As mentioned above, KDE lets you disable specific actions in KDE applications. Actions include such things as saving files, reporting bugs, and changing toolbar settings. These restrictions are recorded in the share/config/kdeglobals file in a special group called [KDE Action Restrictions].

A list of common actions that can be restricted can be found in the share/config/ui/ui_standards.rc file that is shipped with KDE. Additional application specific actions can be discovered using the dcop (Desktop COmmunication Protocol) scripting tools. For instance, to find all the actions used by KMail, start KMail, and then run the following command:

# dcop kmail qt objects | grep KActionCollection/ | cut -d '/' -f 3
KActionCollection-KAccel
viewDocumentSource

By prefacing these actions with action/ and placing them in a KDEGlobals file, you can enable and disable actions at will. In addition to individual actions, there are also action groups, as listed in Table One.

Table One: Restrictable Action Groups

Action NameDescription

custom_config

Defines whether the --config command line option should be honored. The --config command line option can be used to circumvent locked-down configuration files.

lock_screen

Defines whether the user will be able to lock the screen.

logout

Defines whether the user will be able to logout from KDE.

movable_toolbars

Defines whether toolbars may be moved around by the user.

run_command

Defines whether or not the "Run Command" (keyboard shortcut ALT-F2) option is available.

run_desktop_files

Defines whether users may execute desktop files that are not part of the default desktop, KDE \ menu or registered services. The default desktop includes the files under $KDEDIR/ share/kdesktop/Desktop but not the files under $HOME/Desktop. The KDE menu includes all files under $KDEDIR/share/applnk. Registered services includes all files under $KDEDIR/share/services.

shell_access

Defines whether a shell suitable for entering arbitrary commands may be started. This also determines whether the "Run Command" option (ALT-F2) accepts shell-commands or not

As an example, if you want to prevent users in your office from changing keyboard shortcuts, seeing "About KDE" dialogs, using shell commands from KDE applications, and overriding icons we would add the following to the /opt/kde/share/config/kdeglobals file:

[KDE Action Restrictions][$i]
action/options_configure_keybinding=false
action/help_about_kde=false
shell_access=false
icon=false

Note the use of [$i] immutable flag to prevent users from overriding these restrictions in their own kdeglobals file.

Locking Down Resource Types

As a final flourish, individual resource types can be restricted. This effectively prevents users from overriding system defaults (such as icons) with their own files in $KDEHOME. Any of the resource directories listed in Table Two can be restricted in this manner.

Table One: Restrictable Action Groups

ResourceDescription

all

All resources

apps

share/applnk

config

Configuration files

data

Application data

data_<appname>

Data files for <appname>

exe

Program files

html

HTML documentation

icon

Icons

lib

Libraries

locale

Localization files

mime

Mime type definitions

pixmapGraphics

services

Protocol and filter definitions

servicetypes

Component definitions

sound

Sound files

templates

Templates

wallpaper

Wallpapers

page 1 2 3 4 5 6 7 next > >

KDE:The Korporate Desktop Environment

[ Edit ]

Inform

Skip menu "Inform"
  • Home
  • KDE Home
  • News
  • Information
  • FAQ
  • Events
  • Mailing List

KDE::Enterprise

Skip menu "KDE::Enterprise"
  • Articles
    • A Practical Planning and Implementation Guide for Migrating to Desktops Linux
    • Policy Based Linux Desktop Environment
    • Installing the Linux Business Desktop
    • KDE Kiosk: Battening Down the Hatches
    • The deployment dilemma
    • Future of desktop and business
    • KDE:The Korporate Desktop Environment
  • Success Stories
  • Business Directory
  • Interviews
  • Focus On...
  • Business Contacts

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by enterprise.kde.org Webmaster
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal