[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#951071: debian-edu-config: on roaming workstations prep local user's firefox profile and make sure debian-edu.default gets used/created



Package: debian-edu-config
Version: 2.11.12

When playing with roaming workstations, I noticed that the pam_mklocaluser'ed new local user does not have a debian-edu.default Firefox profile, but a profile folder of random name created by Firefox.

To control Firefox's behaviour, we need to add a little /etc/mklocaluser.d/ script, such as:

```
#!/bin/sh

set -e

GROUP=$(id -g "$USER")
HOMEDIR="/home/$USER"

mkdir -p "$HOMEDIR/.mozilla/firefox/debian-edu.default"
if [ ! -e "$HOMEDIR/.mozilla/firefox/profiles.ini" ]; then
cp "/usr/share/debian-edu-config/profiles.ini.ff" "$HOMEDIR/.mozilla/firefox/profiles.ini"
fi
if [ ! -e "$HOMEDIR/.mozilla/firefox/installs.ini" ]; then
cp "/usr/share/debian-edu-config/installs.ini" "$HOMEDIR/.mozilla/firefox/installs.ini"
fi
chmod -R u+w,go-rwx "$HOMEDIR/.mozilla/"
chown -R $USER:$GROUP "$HOMEDIR/.mozilla/"

mkdir -p "$HOMEDIR/.thunderbird/debian-edu.default"
if [ ! -e "$HOMEDIR/.thunderbird/profiles.ini" ]; then
cp "/usr/share/debian-edu-config/profiles.ini" "$HOMEDIR/.thunderbird/profiles.ini"
fi
chmod -R u+w,go-rwx "$HOMEDIR/.thunderbird/"
chown -R $USER:$GROUP "$HOMEDIR/.thunderbird/"
```

Greets,
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

Attachment: pgpzJBFEmkOI1.pgp
Description: Digitale PGP-Signatur


Reply to: