From ee2522bd51408be245c5fce3d339a7c3f229da01 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Thu, 8 Jan 2015 11:59:38 +0200 Subject: enforce /var/lib/gdm ownership --- config/live.cfg | 4 ++++ files/draklive-install.d/run.d/gdm-permissions.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 files/draklive-install.d/run.d/gdm-permissions.sh diff --git a/config/live.cfg b/config/live.cfg index 6da844a..3031e40 100644 --- a/config/live.cfg +++ b/config/live.cfg @@ -87,9 +87,13 @@ my $_l = { [ 'files/draklive-install.d/remove.d/disable-speedboot', '/etc/draklive-install.d/remove.d/disable-speedboot', { mode => 0644 } ], # fix for sometimes wrong permissions [ 'files/draklive-install.d/run.d/home-live-permissions.sh', '/etc/draklive-install.d/run.d/home-live-permissions.sh', { mode => 755 } ], + # fix for /var/lib/gdm sometimes ending up as root:root + if_($live->{settings}{desktop} eq 'GNOME', + [ 'files/draklive-install.d/run.d/gdm-permissions.sh', '/etc/draklive-install.d/run.d/gdm-permissions.sh', { mode => 755 } ]), if_($live->{settings}{desktop} eq 'KDE4', [ 'files/draklive-install.d/run.d/generate-gtk-icon-cache.sh', '/etc/draklive-install.d/run.d/generate-gtk-icon-cache.sh', { mode => 755 } ]), + #- sysconfig files for first boot [ $live->{settings}{media} eq 'usb' ? "files/finish-install.$live->{settings}{media}" : diff --git a/files/draklive-install.d/run.d/gdm-permissions.sh b/files/draklive-install.d/run.d/gdm-permissions.sh new file mode 100755 index 0000000..b549986 --- /dev/null +++ b/files/draklive-install.d/run.d/gdm-permissions.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -d "/var/lib/gdm" ]; then + chown -R gdm:gdm /var/lib/gdm +fi -- cgit v1.2.1