User databases

From wikinotes
Revision as of 01:11, 14 August 2020 by Will (talk | contribs) (→‎Linux)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TODO:

I have code for handling these in TMA repo.

Tools

Linux

sudo useradd --create-home will  # create user will, and home
sudo useradd --system build      # no home dir, uid in system range

sudo groupadd will
sudo groupadd --system build

sudo usermod -aG build will      # add will to group build

FreeBSD

Locations

/etc/passwd

/etc/groups

/etc/shadow

/etc/gshadow

