[desktop-discuss] Reboot icon?
Alan
unipoarsbr at yahoo.com.br
Tue Mar 4 23:28:23 PST 2008
Thanks Brian.
I made this step by step with your information and is working (GDM Login:
shutdown and restart).
Still unable to make the user normal shutdown or restart within the Gnome
(Step 6).
These settings were made with the RBAC Off (RBACSystemCommandKeys=).
Tomorrow I will try to RBAC On (/etc/user_attr).
I am using the Solaris 10 (sol-10-u3-ga-x86-dvd-iso).
0 - Gnome JDS 3
http://img162.imageshack.us/img162/314/gdmrbac0hv6.jpg
1 - CDE Login
http://img166.imageshack.us/img166/3536/gdmrbac1ld2.jpg
2 - Console Login
# svcadm disable cde-login
# svcadm enable gdm2-login
http://img166.imageshack.us/img166/8951/gdmrbac2ld1.jpg
3 - GDM Login
http://img166.imageshack.us/img166/9783/gdmrbac3rk2.jpg
4 - action (default) GDM Login
http://img166.imageshack.us/img166/3677/gdmrbac4dw6.jpg
5 - Gnome: launch -> logout -> root
http://img149.imageshack.us/img149/618/gdmrbac5ri7.jpg
6 - Gnome: launch -> logout -> root -> options
http://img149.imageshack.us/img149/9877/gdmrbac6al9.jpg
7 - /etc/X11/gdm/gdm.conf
[greeter]
SystemMenu=true
http://img149.imageshack.us/img149/6755/gdmrbac7og3.jpg
8 - /etc/X11/gdm/gdm.conf
[daemon]
RBACSystemCommandKeys=
http://img514.imageshack.us/img514/7757/gdmrbac8ss2.jpg
9 - /etc/X11/gdm/gdm.conf (after the modified gdm.conf the Solaris 10 has
been restarted).
[daemon]
# Reboot, Halt and suspend commands, you can add different commands
# separated by a semicolon and gdm will use the first one it can find
RebootCommand=/usr/sbin/reboot;/usr/bin/reboot;/sbin/reboot;/sbin/shutdown -r
now;/usr/sbin/shutdown -r now
HaltCommand=/usr/bin/poweroff;/usr/sbin/poweroff;/sbin/poweroff;/sbin/shutdown
-h now;/usr/sbin/shutdown -h now
SuspendCommand=
http://img514.imageshack.us/img514/7012/gdmrbac9eo9.jpg
10 - Action (changed) GDM Login
http://img150.imageshack.us/img150/4681/gdmrbac10zn1.jpg
11 - Shutdown (added) GDM Login
http://img150.imageshack.us/img150/1936/gdmrbac11zj7.jpg
----- Original Message -----
From: "Brian Cameron" <Brian.Cameron at Sun.COM>
To: "Alan" <unipoarsbr at yahoo.com.br>
Cc: "Desktop Discuss" <desktop-discuss at opensolaris.org>
Sent: Tuesday, March 04, 2008 3:03 PM
Subject: Re: [desktop-discuss] Reboot icon?
>
> 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
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.516 / Virus Database:
> 269.21.4/1310 - Release Date: 4/3/2008 08:35
>
>
_______________________________________________________
Yahoo! Mail - Sempre a melhor opção para você!
Experimente já e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/
More information about the desktop-discuss
mailing list