Closed Bug 264160 Opened 20 years ago Closed 20 years ago

All default groups need to inherit the admin group on a new install

Categories

(Bugzilla :: Installation & Upgrading, defect)

2.18
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: justdave, Assigned: Wurblzap)

Details

(Keywords: regression)

Attachments

(2 files)

Currently on a new install, the newly-created admin is placed individually in
each group on the system, and there is no group inheritance set up.  Rather than
placing the admin in all the groups, we should just place them in admin and make
the other groups all inherit the admin membership.

Right now this makes it a pain in the butt to add a second admin because they
wind up not being able to access editparams.cgi, for example, even though they
have admin checked, because they don't have tweakparams checked and tweakparams
doesn't inherit admin.  This was supposed to be the whole point of the admin group.
I'm calling this a regression because this is expected behavior from 2.16 that
no longer works.
Flags: blocking2.20+
Flags: blocking2.18+
Keywords: regression
Target Milestone: --- → Bugzilla 2.18
Attached patch PatchSplinter Review
I used to think that checksetup.pl restored group admins' group memberships. It
seems to me it doesn't. Is this intentional?
Attachment #162476 - Flags: review?
(In reply to comment #2)

It should be possible for an admin to get out of a group and stay out while
keeping the ability to bless himself back in.  Being in too many groups creates
a very cluttered user interface.
(In reply to comment #3)

Right, so shouldn't then checksetup.pl at least make sure that members of the
admin group get back their permission to bless editgroups if they lose it?
Assignee: zach → wurblzap
Whiteboard: patch awaiting review
(In reply to comment #3)
> (In reply to comment #2)
> 
> It should be possible for an admin to get out of a group and stay out while
> keeping the ability to bless himself back in.  Being in too many groups creates
> a very cluttered user interface.
> 

I disagree. If you don't like the "cluttered interface," use a second account.
After all, you don't run linux as root all day, do you? If I'm logged in as an
"admin," I'd expect to be able to do everything w/out having to first give
myself permission to do something... this comes from a background of network
administration.
Comment on attachment 162476 [details] [diff] [review]
Patch

So, this problem is only on the initial admin created when ./checksetup.pl is
used a brand new installation? Perhaps we should also put something in
sanitycheck.cgi to look for groups that "admin" isn't a part of along with an
option to fix it.
Comment on attachment 162476 [details] [diff] [review]
Patch

justdave says I can review! Hooray. :-) OK, the code looks good (although the
patch is kind of weird and it's not CVS-diffed, so it took me a while to figure
it out.)

I tested and verified it manually on the tip, it works there.

However, this patch does not apply cleanly against the 2.18 branch.
Attachment #162476 - Flags: review? → review+
Should be good for the tip, however I need to fix it for 2.18.
Flags: approval?
Whiteboard: patch awaiting review → patch awaiting approval
OK, here's the same patch, just changed for 2.18. The only real difference is
that we use isbless instead of grant_type in group_group_map for 2.18.

I tested it on a branch here, and it works. I'm not sure if I need to review
this, or if it needs review, or if I can review it myself, or what...
Comment on attachment 169513 [details] [diff] [review]
Patch against 2.18

Travis, could you look this over and make sure that it makes some kind of
sense? I know you normally only do doc reviews, but this is just a sort of
spot-check review, really.

I'd ask the patch author, I'm just concerned because he hasn't commented in two
months.
Attachment #169513 - Flags: review?(travis)
Comment on attachment 169513 [details] [diff] [review]
Patch against 2.18

Max's patch does what he says it does, and applies to the 2.18 branch, so I'll
give it an r+

My concern is purely philosophical. When we create the admin account, we give
that account access to every *existing* group. As far as I know, though,
there's nothing in place to ensure that the admin has similar access to any
groups newly-created after the upgrade... is there? 

If not, then that seems wrong to me, because it's inconsistent. Either the
admin group should automatically be given inheritance access to every group
regardless of when it's created (my preferred solution), or we shouldn't be
giving them the impression that this is what's *going* to happen by doing so on
an upgrade.

I couldn't turn up any other bugs on this issue, so either I'm wrong in my
assumption, or nobody else has reported it yet. Anyone know one way or the
other?
Attachment #169513 - Flags: review?(travis) → review+
Admin should always inherit all permission groups always, period.  That's the
whole point of having the admin group.

non-system groups should be inherited by default, but let you remove yourself
from them if necessary.  Sometimes it's a professional courtesy thing, too.  I
haven't always been a direct contractor for the Mozilla Foundation, but I've had
admin privs on bmo for ages.  I purposely removed myself from the staff-related
groups when I first got admin privs here out of professional courtesy, because I
didn't have a need to know what happened there, and that way I wouldn't get
bugmail that I'd be tempted to read.
Flags: approval?
Flags: approval2.18+
Flags: approval+
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.319; previous revision: 1.318
done

Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.289.2.17; previous revision: 1.289.2.16
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: patch awaiting approval
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: