autologin patch for xdm
by phenixia2003 from LinuxQuestions.org on (#509RZ)
Hello,
As i pointed out in this post, the source of xdm 1.1.10 with autologin patch applied can be found here.
Since the patch is not available anymore, and slackware includes xdm 1.1.11, I had to make the patch (Attachment 32713) from xdm sources 1.1.10, 1.1.10al and 1.1.11.
To build an xdm package for slackware with autologin, proceed as below :
Hope this helps some.
--
SeB
Attached Files


As i pointed out in this post, the source of xdm 1.1.10 with autologin patch applied can be found here.
Since the patch is not available anymore, and slackware includes xdm 1.1.11, I had to make the patch (Attachment 32713) from xdm sources 1.1.10, 1.1.10al and 1.1.11.
To build an xdm package for slackware with autologin, proceed as below :
- 1. download x11 source, with only xdm source tarballs and required build files. Here is the rsync command for that :
Code:$ rsync -av --include="*/" --include="arch.use.flags" --include="build/xdm" --include="configure/xdm" --include="doinst.sh/xdm" --include="modularize" --include="patch/xdm.patch" --include="patch/xdm/*" --include="post-install/xdm.post-install" --include="post-install/xdm/*" --include="slack-desc/xdm" --include="src/app/xdm-*" --include="x11.SlackBuild" --exclude="*" rsync://bear.alienbase.nl/mirrors/slackware/slackware-current/source/x/x11 . - 2. download the patch Attachment 32712, then apply it :
Code:$ patch -p0<x11.patch.txt - 3. Download the patch Attachment 32713, then copy it (without .txt extension) in x11/patch/xdm :
Code:$ cp xdm-autologin.patch.txt x11/patch/xdm/xdm-autologin.patch - 4. run (as root) the command below to build and install the xdm package with autologin :
Code:$ cd x11
$ x11.SlackBuild app xdmNote:
To prevent auto-upgrade of installed xdm package, pass 'UPGRADE_PACKAGES=no' on the command line, as below :
Code:$ UPGRADE_PACKAGES=no x11.SlackBuild app xdm - 6. To enable autologin for the user FOO with the password BAR, open /etc/X11/xdm/xdm-config and add lines as below :
Code:DisplayManager._0.autoUser: FOO
DisplayManager._0.autoPass: BARAs stated here :- autoPass is needed only if you use Kerberos5 authentication or NIS.
- As the password must be stored in clear text, you have to "chmod 600" your xdm-config to prevent everybody with an account from reading it
Hope this helps some.
--
SeB
Attached Files
![]() | x11.patch.txt (1.7 KB) |
![]() | xdm-autologin.patch.txt (12.2 KB) |