openerp user not created if install openerp-web before openerpserver

Bug #807017 reported by speeves
192
This bug affects 25 people
Affects Status Importance Assigned to Milestone
openerp-server (Ubuntu)
Fix Released
High
Daniel Hahler
Hardy
Won't Fix
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
Maverick
Won't Fix
Undecided
Unassigned
Natty
Won't Fix
Undecided
Unassigned
Oneiric
Won't Fix
Undecided
Unassigned

Bug Description

The current openerp-server.postinst checks for a user starting with openerp in /etc/passwd before creating the openerp user. However openerp-web creates an openerp-web user, so the grep -q returns with a successful match. I have simply added the : delimiter to limit the match to only match on 'openerp'.

--- /tmp/openerp-server.postinst.orig 2011-07-07 09:04:30.932769728 -0500
+++ openerp-server.postinst 2011-07-07 09:04:17.084769732 -0500
@@ -16,7 +16,7 @@

   db_stop

- if ! getent passwd | grep -q "^${_USERNAME}"
+ if ! getent passwd | grep -q "^${_USERNAME}:"
   then
    adduser --system --no-create-home --quiet --gecos 'Open ERP server' --group ${_USERNAME}
   else

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openerp-server (Ubuntu):
status: New → Confirmed
Daniel Hahler (blueyed)
Changed in openerp-server (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
assignee: nobody → Daniel Hahler (blueyed)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openerp-server - 5.0.15-2ubuntu1

---------------
openerp-server (5.0.15-2ubuntu1) precise; urgency=low

  * Fix creation of openerp user, when a user openerp* already exists.
    - debian/openerp-server.postinst
    - LP: #807017
  * Fix multiple starts of the server, by using "startas" and "oknodo" with
    start-stop-daemon.
    - debian/openerp-server.init
    - LP: #414864
    - This should also fix "userdel: user openerp is currently logged in"
      (LP: #454436).
 -- Daniel Hahler <email address hidden> Sat, 22 Oct 2011 21:03:11 +0200

Changed in openerp-server (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

Here is the used patch for reference (relevant for any StableReleaseUpdate):
http://launchpadlibrarian.net/83458989/openerp-server_5.0.15-2_5.0.15-2ubuntu1.diff.gz

Vibhav Pant (vibhavp)
Changed in openerp-server (Ubuntu Oneiric):
assignee: nobody → Vibhav Pant (vibhavp)
status: New → Incomplete
status: Incomplete → In Progress
Vibhav Pant (vibhavp)
Changed in openerp-server (Ubuntu Oneiric):
status: In Progress → New
assignee: Vibhav Pant (vibhavp) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Maverick has long since stopped to receive any updates. Marking the Maverick task for this ticket as "Won't Fix".

Changed in openerp-server (Ubuntu Maverick):
status: New → Won't Fix
Rolf Leggewie (r0lf)
Changed in openerp-server (Ubuntu Natty):
status: New → Won't Fix
Changed in openerp-server (Ubuntu Oneiric):
status: New → Won't Fix
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in openerp-server (Ubuntu Hardy):
status: New → Won't Fix
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in openerp-server (Ubuntu Lucid):
status: New → Won't Fix
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.