Configuring Automatic Login

If you've ever wondered how the Live CD just boots directly into the desktop, this is easily configured through a couple of settings in your GNOME Display Manager (GDM) configuration file, /etc/gdm/custom.conf.  Just add the following to the daemon section in custom.conf:

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=<user id>
GdmXserverTimeout=30

When AutomaticLoginEnable is set to true, the user given in AutomaticLogin is logged in immediately. The GdmXserverTimeout setting will determine how long the system will try before giving up and presenting the login screen. This could occur, for example, if the supplied user id doesn't exist on the system.

When making changes to custom.conf, restart gdm for the changes to take effect:

$ sudo svcadm restart gdm

The GNOME Display Manager is quite customizable. See the gdm man page for more.

Comments:

Great Tip. Very helpful indeed, especially for the VMs.

Keep up the great posts.

How about activating Apache/SSL on Solaris 11 Express? Know much about that?

:-)

Posted by Chris on January 27, 2011 at 06:20 PM GMT #

Chris, I do now: http://blogs.sun.com/observatory/en_US/entry/apache_ssl .

Posted by W Brian Leonard on January 28, 2011 at 12:26 PM GMT #

Thanks for the QUICK update. I'll try this when I get home. You're easy-to-understand instructions are key for new users and "mature" Solaris users alike. Without question there were MANY changes to Solaris 10 versus all previous releases. Now with Solaris 11 just around the corner, AND, with Oracle's new road-map, we'll need instructions like this to keep Solaris going. Many people, my shop included, have been looking at, and testing, Red Hat lately to see if it's an alternative for OUR future solutions. All due to "changing times".

I'm still hoping Oracle can continue all the good work which was started by some great OpenSolaris developers.

If we can get away from the Blastwaves and OpenCSW's of the world, (they're a great help, don't get me wrong), and have the vendor support and maintain Open Source packages for their own OS (Solaris), my customer would feel more at ease. To say that I downloaded the OS packages from Oracle sounds better than, "I grabbed them from this Open Site, trust them", doesn't sit well.

Customers feel better with a "certificate of authenticity", or "chain-of-custody" so-to-speak.

Thanks again!

Posted by Chris on January 28, 2011 at 01:21 PM GMT #

I'm very VERY new to solaris and I did this just fine :)
One thing was you can't edit the file, I had to open a terminal navigate to this folder , log in as admin, then I could edit the file

Posted by nathan on October 09, 2011 at 11:15 PM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today