Remote Login Does Not Work in SuSE Linux 8.1

Support knowledgebase (wessels_remote81)
Applies to

SuSE Linux: Version 8.1

Symptom

You want to export your X server to another computer or to perform a remote login as root, but the login attempt fails.

Cause

A bug in the file /etc/X11/xdm/Xstartup.

Solution

Open the file /etc/X11/xdm/Xstartup as root user with an editor of your choice


vi /etc/X11/xdm/Xstartup

and search for the section:


while test "$RUID" = "0" ; do
    test "$LOCATION" = "console"       && break
    test "$LOCATION" = "localhost"     && break
    test "$LOCATION" = "`hostname -f`" && break
    test -s /etc/rc.config             && . /etc/rc.config
    test "$ROOT_LOGIN_REMOTE" = "yes"  && break
    $xmessage -timeout 10 -default okay -center "No foreign root login allowed"
    exit 1
done

Replace the line 59

test -s /etc/rc.config && . /etc/rc.config

with


test -s /etc/sysconfig/displaymanager && . /etc/sysconfig/displaymanager

and change the line 60


test "$ROOT_LOGIN_REMOTE" = "yes"  && break

to


test "$DISPLAYMANAGER_ROOT_LOGIN_REMOTE" = "yes" && break

Save the file and restart your XDM. Make sure that the variable DISPLAYMANAGER_REMOTE_ACCESS is set to yes in the file /etc/sysconfig/displaymanager. If necessary, use an editor to insert this variable in the file. Please note that everytime the files under /etc/sysconfig are modified, SuSEconfig must be subsequently executed.


Keywords: REMOTE, LOGIN, XSTARTUP

SDB-wessels_remote81, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 28. Nov 2002
SuSE Linux AG - Last generated: 28. Nov 2002 by ip (sdb_gen 1.40.0)