Everyone:

The below steps that David provides aren't exactly right if you are
using Nevada.  Note that on Solaris 10 the GDM configuration
file is /etc/X11/gdm/gdm.conf, but on Solaris Nevada there are two
configuration files.  The default values are in
/usr/share/gdm/defaults.conf and you can override them by setting
the values in /etc/X11/gdm/custom.conf to different values.

You can ignore the following RBAC stuff if using an older version of GDM
than GDM 2.20.  GDM 2.20 was added to Nevada in build 75.  Note that in
recent Nevada builds, /usr/share/gdm/defaults.conf now has this RBAC
key:

RBACSystemCommandKeys=HALT:solaris.system.shutdown;REBOOT:solaris.system.shutdown

This means that GDM will not show the shutdown/reboot options on the
login screen unless the gdm user is given RBAC authority to do
solaris.system.shutdown.  Your user won't have the GDM options for
shutdown/reboot in the GNOME panel unless your user also has this
authority.  If you want to use RBAC, then you can just edit your
/etc/user_attr file and add auths=solaris.system.shutdown for your user
and/or the gdm user.

If you don't want to use RBAC, and you just want shutdown/reboot to show
up for all users and on the login screen all the time, then you can
modify this GDM RBACSystemCommandKeys configuration option so it is
empty.  Note you can override configuration options in your
/etc/X11/gdm/gdm.conf, so if you don't want to use RBAC, then add this
line to /etc/X11/gdm/custom.conf in the "[daemon]" section:

RBACSystemCommandKeys=

Note that if GDM isn't configured properly to support shutdown/reboot,
then the GNOME panel will use gnome-sys-suspend, which does not support
a "Reboot" option.  So, if you don't see a "Reboot" option, you probably
are not using GDM, or don't have it configured properly.

> First enable gdm
> 
> /etc/init.d/dtlogin stop
> /usr/dt/bin/dtconfig -d
> svcadm enable gdm2-login

The above is correct for Solaris 10, but the command on Nevada is
"svcadm enable gdm"

> /etc/X11/gdm/gdm.conf

This is the configuration file on Solaris 10, but on Nevada, you should
modify /etc/X11/gdm/custom.conf.

> uncomment
> 
> SystemMenu=true
> RebootCommand=/usr/sbin/reboot
> HaltCommand=/usr/sbin/shutdown -i5 -g0 -y

"/sbin/init 5" is the supported halt command and "/sbin/init 6" is the
supported reboot command on Solaris.  Don't complain if you use the
above commands and find out later it doesn't do things like sync your
hard drive on shutdown, or update your boot archive and you find this
causes you problems.

Brian
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to