The passwd package

Fink has a special package named passwd that’s responsible for adding users to the system. This is necessary because some packages need users with specific names in order to build, install, or run. For example, when installing the postgresql84 package, there needs to exist a user named ‘postgres’ on the system.

Let’s use the dpkg command to inspect the contents of the passwd package:

$ dpkg -L passwd

/sw/etc/passwd-fink (group-fink) contains the list of users (resp. groups) that are to be/have been installed on the system, and /sw/sbin/update-passwd is a shell script that effectively adds users and groups based on the aforementioned files.

When the passwd package is being installed (usually because some other package needs a certain user/group) it asks the user whether it should add users and groups to the system. Whilst it is possible to answer negatively, the package that asked for passwd will probably have some problem during building, installing, or running, so users are in general advised to answer positively. If you’ve answered no then you can either add users and groups manually or run

fink reinstall passwd

and answer yes.

Also, if for some reason the users or groups installed by the passwd package are not present on your system any longer, the command above should fix that.


2 responses to “The passwd package

  1. Note that there is currently work going underway to split passwd into multiple subpackages such that if you only need 1 of the many users that the current passwd installs, then only that user will be installed.

    If this proposal is added to fink, then one would need to use:

    fink reinstall passwd-

    The release of 10.6 slowed down work on this, but hopefully now that that’s out the door and things are stabilizing it can get a 2nd look.

  2. grrr. < > Brackets were removed. That should be:

    fink reinstall passwd-“specific user”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s