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

Bug#774395: debian-edu-config: the script 09debian-edu-missing-home fails to work with kdm

Package: debian-edu-config
Version: 1.815
Severity: important
Tags: patch

With kdm in jessie the script doesn't work anymore cause kdm sets 
$HOME=/ before the script is executed.

So users are not informed about a possible reason for the failing login 
and don't get a hint how to solve the problem.

The patch has been tested and committed to git.

diff --git a/etc/X11/Xsession.d/09debian-edu-missing-home b/etc/X11/Xsession.d/09debian-edu-missing-home
index e348bf7..ae74cdd 100755
--- a/etc/X11/Xsession.d/09debian-edu-missing-home
+++ b/etc/X11/Xsession.d/09debian-edu-missing-home
@@ -5,14 +5,14 @@
 if [ -r /etc/debian-edu/config ] ; then
     . /etc/debian-edu/config
     if echo "$PROFILE" | egrep -q 'Workstation|Thin-Client-Server|Minimal' ; then
-	if [ ! -d $HOME ] ; then
+	if [ ! -d $HOME -o / = "$HOME" ] ; then
 	    cat <<EOF | \
 		xmessage -buttons Understood:0 -timeout 30 -center -file - 
-Missing user home directory $HOME.
+Missing user home directory.
-Check if the current computer DNS name in the NIS netgroup
+Check if the current computer DNS name is in the NIS netgroup
 workstation-hosts and authorized to mount the home directories from
-the NFS server.  This is done using Gosa, http://www/gosa/ .
+the NFS server.  This is done using Gosa, https://www/gosa/ .
 	    exit 1


Reply to: