When I run X as root in centos 6 I get a nice little message that "your currently trying to run as root super user" and are you sure you want to with a checkbox. I do this for a reason as a post install step, then the system reboots and it never happens again... I am trying to find how to set this checkbox which says "never ask me again" and move on... I was trying to find it in gconf-editor but have not found it. Does anyone know where it is? THanks, Jerry
On 07/27/2011 11:39 PM, Jerry Geis wrote:> I do this for a reason as a post install step, then the system reboots > and it never happens again...And so you will never be asked again, it seems.> I am trying to find how to set this checkbox which says "never ask me > again" and move on...But it isn't going to have a chance to ask you again, is it? Anyway, I'm just being silly above. The gconf key for this is: /apps/gnome-session/options/show_root_warning It accepts a bool value, so something along the lines of the following command should work from within a kickstart or post-install script/firstrun kludge if that is your intention (and I assume it is as the above two statements must not be quite what you meant): gconftool-2 --direct --config-source \ xml:readwite:/etc/gconf/gconf.xml.defaults \ --type bool --set /apps/gnome-session/options/show_root_warning false Not sure if the format length turned out correctly in email, but I think you get the idea. Have fun! -Iwao PS: If anyone knows anything better than the above sort of commands, please pipe up. I've been doing a *lot* of gconftool-2 scripted customizations lately and some of the options are pretty hard to research. Things like setting default colors for gnome-terminal or changing icons defaults, etc. are a fruitful source of irritating mistakes. Any better ideas are welcome -- thanks in advance.
> > Anyway, I'm just being silly above. The gconf key for this is: > > /apps/gnome-session/options/show_root_warning >Thats awesome... I new the rest about setting values - I just didnt know the name. Thanks, Jerry
On Wednesday 27 July 2011 15:39:46 Jerry Geis wrote:> When I run X as root in centos 6I guess you've probably already been told that this is a Very Bad Idea, right?> I get a nice little message that "your currently trying to run as root > super user" and > are you sure you want to with a checkbox.Of course, when the system sees that you are about to shoot yourself in the foot, it asks you if you are sure what you are doing. If you are, just check the checkbox and continue. ;-) But think twice, though.> I do this for a reason as a post install step, then the system reboots > and it never happens again...What never happens again? The message doesn't appear on subsequent root X logins (this is a bug that should be reported), or you subsequently never try to login as root again (this is a good idea to be practiced)?> I am trying to find how to set this checkbox which says "never ask me > again" and move on...I believe that the system is designed to warn you with that message, *every* *time* you try to login as root into X. I guess that the "never ask me this again" functionality isn't implemented, deliberately. The system *should* ask you again. Every time. :-) As a side note, just be warned that you are about to catch a lot of flaming from the list by asking these taboo questions. The "Never Login Into X As Root, or if you do, Don't Tell Anyone What You Did And Don't Ask For Advice" rule applies. ;-) HTH, :-) Marko