Opened 20 years ago

Closed 18 years ago

#2050 closed defect (worksforme)

BUG: adduser works asynchronous on OS-X

Reported by: mww@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc: decibel (Jim Nasby), snu@…, ronaldoussoren@…
Port:

Description

port's "adduser" command works async. You can't be sure that the user is immediately available after you executed the "adduser" command.

This leads to ports failing (e.g. postgresql) for the first time they destroot (and the user gets created). Current workaround is to retry the destroot phase, as on the 2nd try the user is finally there.

This bug occurs at least on OS-X.

Change History (8)

comment:1 Changed 20 years ago by olegb@…

Cc: ronaldoussoren@… added

comment:2 Changed 20 years ago by olegb@…

* Bug 2043 has been marked as a duplicate of this bug. *

comment:3 Changed 20 years ago by mww@…

Cc: decibel@… added

comment:4 Changed 20 years ago by mww@…

* Bug 2332 has been marked as a duplicate of this bug. *

comment:5 Changed 19 years ago by snu@…

Someone should write a portfile for our usermgmt_cmds and then we could use that adduser ;)

comment:6 Changed 19 years ago by snu@…

Cc: snu@… added

comment:7 Changed 19 years ago by pguyot (Paul Guyot)

Can anyone reproduce this on 10.4? On 10.3?

On 10.4.2, I tried:

system "touch foobar" adduser foo system "chown foo foobar"

and it worked.

comment:8 Changed 18 years ago by mww@…

Resolution: worksforme
Status: newclosed
Summary: adduser works asynchronous on OS-XBUG: adduser works asynchronous on OS-X

seems to work meanwhile;

Note: See TracTickets for help on using tickets.