homectl: add page (#5688)

manned-org
Axel Navarro 2021-04-13 10:35:21 -03:00 committed by GitHub
parent c571fa7ce2
commit 660d097d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

36
pages/linux/homectl.md Normal file
View File

@ -0,0 +1,36 @@
# homectl
> Create, remove, change or inspect home directories using the systemd-homed service.
> More information: <https://man.archlinux.org/man/homectl.1>.
- List user accounts and their associated home directories:
`homectl list`
- Create a user account and their associated home directory:
`sudo homectl create {{username}}`
- Remove a specific user and the associated home directory:
`sudo homectl remove {{username}}`
- Change the password for a specific user:
`sudo homectl passwd {{username}}`
- Run a shell or a command with access to a specific home directory:
`sudo homectl with {{username}} -- {{command}} {{command_arguments}}`
- Lock or unlock a specific home directory:
`sudo homectl {{lock|unlock}} {{username}}`
- Change the disk space assigned to a specific home directory to 100 GiB:
`sudo homectl resize {{username}} {{100G}}`
- Display help:
`homectl --help`