Changes between Initial Version and Version 1 of kde/ApplicationAccessRestrictions


Ignore:
Timestamp:
Nov 24, 2009, 2:03:57 PM (15 years ago)
Author:
Jörg Steffens
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kde/ApplicationAccessRestrictions

    v1 v1  
     1= Restrict Access to Applications =
     2
     3sometimes, applications are installed on the system,
     4but not all users should not be able to start it.
     5
     6uninstalling not always possible,
     7because some users may use it, or it is part of a larger RPM and the other applications from the RPM should stay on the system.
     8
     9different approaches:
     10
     11
     12====== TryExec ======
     13
     14check, if the user is allowed, to execute the application:
     15
     16{{{
     17[Desktop Entry]
     18Comment=Ganttproject
     19Exec=/opt/ganttproject/ganttproject.sh
     20TryExec=/opt/ganttproject/ganttproject.sh
     21}}}
     22
     23If the command that is specified by TryExec is not executable by the user,
     24the Desktop-Entries is not displayed in the Start-Menu.
     25
     26
     27====== hide application by modifying the .desktop file ======
     28
     29show only, if VMware image exists (and is readable):
     30
     31vmware-winnt.desktop:
     32{{{
     33[Desktop Entry]
     34Comment=VMware mit Windows NT starten
     35Exec=/usr/bin/sudo /usr/bin/sc_vmware.sh /local/vmware/vermka/Windows_NT.vmx
     36Hidden[$e]=$(test -r /local/vmware/vermka/Windows_NT.vmx || echo "true")
     37}}}
     38
     39====== permissions ======
     40
     41Set application permissions to not executable by normal user and desktop files to be not readable.
     42Define this in a permissions file under {{{/etc/permissions.d/}}}.
     43Filename must match a installed RPM name.
     44
     45Execute
     46{{{/sbin/conf.d/SuSEconfig.permissions}}}
     47
     48which sets permissions accordanly.
     49After package installation by YaST, SuSEconfig is called
     50and sets permissions.
     51Therefore application is still unaccessable after a package update.
     52
     53Example:
     54/etc/permissions.d/k3b:
     55{{{
     56/usr/bin/k3b                                    root.media      750
     57/usr/share/applications/kde4/k3b.desktop        root.media      640
     58}}}
     59
     60