Configure automatic login on Solaris and OpenSolaris with GDM

From ezUnix
Revision as of 16:53, 19 February 2012 by YazzY (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
                                    pdf_icon.png Download this article as a single PDF document 


This Howto is for x86 only and was tested on Solaris 10 and OpenSolaris Nevada.

Configure GDM

First you need to create a config file for GDM called gdm.conf or cutom.conf in /etc/X11/gdm/ Edit it if it is already there and add there following:


Where oper is the user you want to log in automatically.

Configure PAM

Edit /etc/pam.conf and add there following:

       gdm-autologin auth  required
       gdm-autologin auth  sufficient

The file /usr/lib/security/ is not currently included with Solaris 10. It can be copied from one of the Nevada releases, for the appropriate platform, and installed in /usr/lib/security.

You may also soft link to

# cd /usr/lib/security/ ; ln -s


Edit .Xclients in the oper's home directory and add there:



#chmod 755 .Xclients

GDM's session config

Edit .dmrc in oper's home dir and add there following:


Disable CDE login and enable GDM

This may be needed only on Solaris 10:

   # svcadm disable cde-login
   # svcadm enable gdm2-login


The .xinitrc in user's home dir is not used so if you need to run any custom commands for your WM then you need to copy your old .xinitrc to .profile

That's all folks. Marcin

<comments />

hoapoulpaws said ...
03:07, 23 December 2010 (CET)
I am impressed with your web resource.