https://bugzilla.wikimedia.org/show_bug.cgi?id=68156

            Bug ID: 68156
           Summary: become should complain more clearly if the user is not
                    (in this session) a member of the tool
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

At the moment, if you try to become a tool that you are not a member of, the
error message is rather cryptic:

| scfc@tools-login:~$ become coursestats
| sudo: sorry, a password is required to run sudo
| scfc@tools-login:~$

Krinkle suggested in #wikimedia-labs that we test whether the user is a member
of the tool and in that case provide a more meaningful message.

If I'm not mistaken, we could also use that for the common: "You have to log
out and in again!" case where the tool's members have been updated, but the
user's session groups do not reflect that.  I. e., if "getent group
tools.$TOOL" shows the user as a member, but "groups" (?) doesn't show the
tool's group, the user could be advised to log out and in again.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to