Univention Bugzilla – Bug 38580
Clean up /var/tmp/kdecache-${USERNAME}
Last modified: 2023-06-28 10:33:34 CEST
+++ This bug was initially created as a clone of Bug #31863 +++ Bug #31863 only fixed this in the UCC-XRDP session script so only terminal server logins are affected. The workaround (set KDEVARTMP via UCC desktop policy) does not work either as KDE's "lnusertemp" (used to create/verify the users tmp and cache dir in /usr/bin/startkde) does not glob the content of KDEVARTMP: janis@fat:~$ echo $KDEVARTMP /home/janis/.cache janis@fat:~$ /usr/lib/kde4/libexec/lnusertemp cache ; echo $? 0 janis@fat:~$ ls -ld /home/janis/.cache/kdecache-janis/ drwxr-xr-x 4 janis Domain Users 4096 May 21 11:02 /home/janis/.cache/kdecache-janis/ janis@fat:~$ export KDEVARTMP="~/.cache" janis@fat:~$ /usr/lib/kde4/libexec/lnusertemp cache ; echo $? Error: cannot create directory "~/.cache/kdecache-janis": No such file or directory 1 janis@fat:~$ export KDEVARTMP="\$HOME/.cache" janis@fat:~$ /usr/lib/kde4/libexec/lnusertemp cache ; echo $? Error: cannot create directory "$HOME/.cache/kdecache-janis": No such file or directory 1
Workaround (if local /home partition exists and is big enough): * Create a dedicated user writeable directory for KDE caches on all UCC clients: chgrp 'Domain Users' /home/.kde-caches/ chmod 770 /home/.kde-caches/ * Add a UCC-Desktop-Settings policy to all users Variable: KDEVARTMP Value: /home/.kde-caches/ First logon will then create the users cache in /home/.kde-caches/kdecache-$USERNAME with chmod 700
(In reply to Janis Meybohm from comment #1) > Workaround (if local /home partition exists and is big enough): This only works if local home directories are used. With CIFS home bug35578 steps in and UCC-Desktop-Settings policies are not evaluated.
Created attachment 6929 [details] script to create an .ucc-environment in every users home As a workaround for the workaround. Script may be run regularly to create .ucc-environment files with KDEVARTMP DEFAULT="unixHome/.kde-cache" for each user. ucr set cron/uccenv/command="/usr/local/sbin/kdevartmp-uccenv.py" \ cron/uccenv/user=root \ cron/uccenv/time="*/5 * * * *"
Reported again: http://forum.univention.de/viewtopic.php?f=64&t=4372
UCC is EoL