Create a lab user
pw useradd labuser -m -s /bin/sh
id labuser
ls -ld /home/labuser- -m creates the home directory.
- id confirms UID and group membership.
Administer local identities with pw, understand root delegation, ownership, modes and account hygiene.
FreeBSD uses standard Unix users and groups. pw provides a scriptable interface for local account management. Root remains the unrestricted superuser account, so administrative delegation should be deliberate.
Files have owner, group and other permissions. chmod changes mode bits; chown changes ownership. Additional controls such as file flags and ACLs exist but should be introduced only when needed.
pw useradd labuser -m -s /bin/sh
id labuser
ls -ld /home/labuserGoal: Create users/groups and a directory with intentional ownership and group access.
pw groupadd opslab || true
pw useradd alice -m -G opslab || true
pw useradd bob -m -G opslab || truemkdir -p /usr/local/opslab
chown root:opslab /usr/local/opslab
chmod 2770 /usr/local/opslabls -ld /usr/local/opslab
id alice
id bobShared operational directories should encode group ownership rather than rely on repeated manual chown operations.
Open each answer only after you have tried to answer the question yourself.
pw.
New entries inherit the directory group, which helps shared-team workflows.
It grants write access far more broadly than most operational requirements justify.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.