Specify UserID and GroupID for MacPorts users, how can I do that?

Bjarne D Mathiesen macintosh at mathiesen.info
Mon Nov 8 12:21:27 UTC 2021



FritzS GMX wrote:
> Which users (and their groups) are created by MacPorts and how can they be created during a new installation so that they get a UID (also GroupID) previously defined by me.
> Is there possibly a script suggestion that could be used before the MacPorts installation?
> 
> I want to achieve UID's & GroupID's starting from 530.
> 
> I want to install MacPorts on my new M1 MacMini with Monterey.
> 
> From my old Mac with ElCapitan
> # _messagebus 512
> # avahi 511
> # ldap 500
> # macports 506
> # messagebus 508
> # named 509
> # pulse 510
> 

you've got three (3) Terminal commands to manage users directly
# dscl
# dsexport
# dsimport

so for your case something like :
dsexport export.out \
    /local/Default \
    dsRecTypeStandard:Users \
    -r _messagebus,...,pulse
    -u admin -p password
ought to work


-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 ; OpenCore + macOS 10.15.7 Catalina
2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB


More information about the macports-users mailing list