Alan/Others:

Regarding how to switch to using GDM and to get the Shutdown and Reboot
features working.  A more step-by-step guide since people have been
asking me.

---

It is a little confusing because the steps are a bit different depending
on whether you are using Solaris 10, or Nevada.  I'll try to explain:

1. Switch from using CDE login to GDM

    Run the following two commands as root:

    svcadm disable cde-login
    svcadm enable gdm

    If the above command to enable GDM does't work, then this might be
    caused if you are using Solaris 10 (or an old version of Nevada).
    In this case, you run this command instead to enable gdm

    svcadm enable gdm2-login

    Note if the cde-login service doesn't exist on your system, that
    you should run the following command to turn off CDE login, and
    then reboot into text console.  Then login to root and run the
    above "svcadm enable gdm" command.

    /usr/dt/bin/dtconfig -d

2. Configure GDM to turn on SystemMenu

    Edit /etc/X11/gdm/custom.conf

    Add the "SystemMenu=true" line after the line that says "[greeter]",
    like this.:

    [greeter]
    SystemMenu=true

3. Decide if you want to use RBAC or not.  If you use RBAC then you
    specify which users have the ability to shutdown/reboot.  If you
    do not use RBAC, then all users have the ability.

    To configure to not use RBAC, add this line after the line that
    says "[daemon]" like this.  Setting the value to nothing turns
    off RBAC support.

    [daemon]
    RBACSystemCommandKeys=

    To configure to use RBAC, then you need to edit your /etc/user_attr
    file to specify which users have shutdown/reboot authority.  If you
    want shutdown/reboot to show up in the login screen, then set up
    the solaris.system.shutdown auth for the "gdm" user like this:

    gdm::::type=normal;auths=solaris.system.shutdown

    Likewise you can add a line for other users.  The following is
    a reasonable line for a non-gdm user:

    user::::type=normal;auths=solaris.system.shutdown;profiles=Basic 
Solaris User,All,

Then you should reboot or run gdm-restart as root to restart the GDM
daemon, and everything should work.  You should not run gdm-restart
if you have a running session with unsaved data, since this command
will immediately log you out and return you to the login screen.

Let me know if this helps, or if you have any problems.

More info here:

   http://www.gnome.org/projects/gdm/docs/2.20/solaris.html

Brian

Reply via email to