If you consider running Solaris on your PC(s) at home (e.g. in a multiboot setup), there is often the requirement that anyone can shutdown the PC after logging out.
I suggest that you perform the following steps:
- Change the gdm customization file, /etc/X11/gdm/custom.conf
- Deactivate the CDE login service
- Activate gdm
Changing the gdm customization file, /etc/X11/gdm/custom.conf
Put the following lines after the line [greeter] in file /etc/X11/gdm/custom.conf:
SystemMenu=true DefaultWelcome=false Welcome=Welcome on %n IncludeAll=true RebootCommand=/sbin/init 6 HaltCommand=/sbin/init 5
Deactivating the CDE login service
Log in in as user root, using the console or the failsafe session mode from your login mananger. Then, execute:
svcadm disable cde-login
This will kill your X server, so you have to login from the console.
Activating gdm
Log in as user root. Then execute:
at now + 1 minute svcadm enable gdm <ctrl>d
This will create an at job which will be executed after one minute. This should give you enough time to log out ;-). So, please log out after you have pressed <ctrl>d. Wait for one minute and see the gdm screen showing up. That’s all.
It’s likely possible to combine steps 2 and 3, e.g.:
at now + 1 minute svcadm disable cde-login sleep 5 svcadm enable gdm <ctrl>d
Not sure if the delay between disabling cde-login and enabling gdm is really necessary – I just have not tested yet.