Bug 38580 - Clean up /var/tmp/kdecache-${USERNAME}
Clean up /var/tmp/kdecache-${USERNAME}
Status: CLOSED WONTFIX
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 2.x
Assigned To: UCC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-21 13:27 CEST by Janis Meybohm
Modified: 2023-06-28 10:33 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
script to create an .ucc-environment in every users home (2.90 KB, text/x-python)
2015-05-29 12:57 CEST, Janis Meybohm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2015-05-21 13:27:12 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
Comment 1 Janis Meybohm univentionstaff 2015-05-21 15:05:46 CEST
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
Comment 2 Janis Meybohm univentionstaff 2015-05-28 16:06:19 CEST
(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.
Comment 3 Janis Meybohm univentionstaff 2015-05-29 12:57:33 CEST
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 * * * *"
Comment 4 Erik Damrose univentionstaff 2015-09-17 10:55:57 CEST
Reported again: http://forum.univention.de/viewtopic.php?f=64&t=4372
Comment 5 Philipp Hahn univentionstaff 2023-06-28 10:30:36 CEST
UCC is EoL