In the previous example /opt/kde_staff
contained additional settings
and applications for staff members. “User Profiles” allow you
to add this directory only for certain users and not for others. Add the
following to /etc/kderc
:
[Directories-staff] prefixes=/opt/kde_staff
This creates a profile named “staff” that adds the
/opt/kde_staff
directory
tree. (Note that SuSE® Linux® uses
/etc/kde3rc
instead of
/etc/kderc
. Now that we have a named profile it
can be assigned to users.
To map profiles to users a mapping file needs to be specified in
/etc/kderc
:
[Directories] userProfileMapFile=/etc/kde-user-profile
It is now possible to assign a profile based on either the user name or based on the UNIX® group the user is part of.
To assign the staff profile to all users that are a member of the
UNIX® group staff_members add the following to
/etc/kde-user-profile
:
[General] groups=staff_members [Groups] staff_members=staff
It is also possible to assign a profile to a single user:
[Users] bastian=staff