homectl
Create, remove, change, or inspect home directories using the systemd-homed service. More information: https://www.freedesktop.org/software/systemd/man/latest/homectl.html.
- List user accounts and their associated home directories:
homectl list
- Create a user account and their associated home directory:
sudo homectl create
- Remove a specific user and the associated home directory:
sudo homectl remove
- Change the password for a specific user:
sudo homectl passwd
- Run a shell or a command with access to a specific home directory:
sudo homectl with --
- Lock or unlock a specific home directory:
sudo homectl
- Change the disk space assigned to a specific home directory to 100 GiB:
sudo homectl resize
- Display help:
homectl
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
