What does local account management do?
Creates users and groups to manage system access
Name commands for local account management.
groupadd, useradd, adduser
What does groupadd do?
Creates new user groups for organizing access control
Syntax for groupadd?
groupadd [options] groupname
Example of groupadd?
sudo groupadd engineering
Exit codes for groupadd?
0 success, 2 incorrect syntax, 4 internal file error, 9 group already exists
Command to check exit code?
echo $?
What does useradd do?
Creates new user accounts with detailed configuration
Syntax for useradd?
useradd [options] username
Example of useradd?
sudo useradd -c ‘Jane Doe - Engineer’ -m -s /bin/bash -e 2025-12-31 -u 1050 jane
What does -c option in useradd do?
Adds comment
What does -m option do?
Creates home directory
What does -s option do?
Sets shell to Bash
What does -e option do?
Sets account expiration date
What does -u option do?
Sets user ID
Command to view default settings for useradd?
useradd -D
What does adduser do?
Interactive script for user creation
How does adduser work internally?
Uses useradd in the background
Syntax for adduser?
adduser username
Why is adduser suitable for new admins?
Provides a guided setup