[Sugar-devel] [PATCH 2/2] disabling become root button

Rafael Ortiz rafael at activitycentral.com
Fri May 20 17:49:39 EDT 2011


On Fri, May 20, 2011 at 4:29 PM, Sascha Silbe <silbe at activitycentral.com>wrote:

> Excerpts from Rafael Ortiz's message of Thu May 19 18:52:59 +0200 2011:
>
> > Temporaly Disabling become root button on terminal activity
> > avoiding problems reported  SL#2756 and #2597, also in merge request on
> gitorious
>
> CC'ing Gary and Walter to discuss the UI side of this.
> As discussed in both tickets [1,2] we might want to get rid of this
> button permanently - at least in its current form. It's dangerous
> (kills the currently running process(es)) and just a shorthand for
> "su -".
>
> While getting rid of the button without any replacement would make root
> access less easy to discover, I'd argue that without a minimal
> introduction the shell functionality is equally "hard" to discover. The
> same minimal introduction (/etc/motd?) could mention "sudo -i".
>
>
>
Thanks for the review Sasha, I also think we will need further introductions
on how to become root, although at this moment I don't know how to add this
from the activity itself without having a mod on the os, IIRC olpc's term
had this info along with a ''welcome children of the world'' intro ,
although dextrose don't. (I might be wrong though), ideas welcomed.


> [terminal.py]
> > @@ -86,17 +86,17 @@ class TerminalActivity(activity.Activity):
> >          tab_toolbar_button.show()
> >
> >          # Add a button that will be used to become root easily.
> > -        root_button = ToolButton('activity-become-root')
> > -        root_button.set_tooltip(_('Become root'))
> [...]
> > +        #root_button = ToolButton('activity-become-root')
> > +        #root_button.set_tooltip(_('Become root'))
> [...]
>
> Please just remove the lines. If we want to bring them back later, we
> can just revert the patch. That's what a VCS is for after all.
>
> Right!.


> Sascha
>
> [1] https://bugs.sugarlabs.org/ticket/2597
> [2] https://bugs.sugarlabs.org/ticket/2756
> --
> http://sascha.silbe.org/
> http://www.infra-silbe.de/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110520/7847c55a/attachment-0001.html>


More information about the Sugar-devel mailing list