homectl

Create, remove, change or inspect home directories using the systemd-homed service.

TLDR

List user accounts and their associated home directories

$ homectl list
copy

Create a user account and their associated home directory

$ sudo homectl create [username]
copy

Remove a specific user and the associated home directory

$ sudo homectl remove [username]
copy

Change the password for a specific user

$ sudo homectl passwd [username]
copy

Run a shell or a command with access to a specific home directory

$ sudo homectl with [username] -- [command] [command_arguments]
copy

Lock or unlock a specific home directory

$ sudo homectl [lock|unlock] [username]
copy

Change the disk space assigned to a specific home directory to 100 GiB

$ sudo homectl resize [username] [100G]
copy

Display help

$ homectl --help
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies