User 1 is pre-defined

Bug #475971 reported by Josh Koenig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PANTHEON Mercury
Fix Released
Undecided
Greg Coit

Bug Description

It's not so good that user #1 comes pre-established. In the longer run we want an install profile to handle this, but in the short term, we should just remove the record and reset the AUTO_INCREMENT on the users table:

DELETE FROM users WHERE uid = 1;
ALTER TABLE users AUTO_INCREMENT = 1;

Revision history for this message
Sean Bannister (seanbannister) wrote :

The current user-data script I'm working on allows the user to change the username, password and email of user 1. If we still want this functionality I'll update the user-data to create a new record.

Revision history for this message
Josh Koenig (joshkoenig) wrote : Re: [Bug 475971] Re: User 1 is pre-defined

Very cool Sean! I would love that as an optional feature! Let's do both. ;)

On Thu, Nov 5, 2009 at 3:45 PM, Sean Bannister <email address hidden>wrote:

> The current user-data script I'm working on allows the user to change
> the username, password and email of user 1. If we still want this
> functionality I'll update the user-data to create a new record.
>
> --
> User 1 is pre-defined
> https://bugs.launchpad.net/bugs/475971
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Open-source system configuration for high-performance Drupal: New
>
> Bug description:
> It's not so good that user #1 comes pre-established. In the longer run we
> want an install profile to handle this, but in the short term, we should
> just remove the record and reset the AUTO_INCREMENT on the users table:
>
> DELETE FROM users WHERE uid = 1;
> ALTER TABLE users AUTO_INCREMENT = 1;
>

--
--------------------
Josh Koenig, Partner & CTO
http://www.chapterthree.com

Greg Coit (gregcoit)
Changed in projectmercury:
assignee: nobody → Greg Coit (gregcoit)
status: New → Confirmed
Greg Coit (gregcoit)
Changed in projectmercury:
status: Confirmed → In Progress
Greg Coit (gregcoit)
Changed in projectmercury:
status: In Progress → Fix Committed
Greg Coit (gregcoit)
Changed in projectmercury:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.