Skip to content

Instantly share code, notes, and snippets.

@mz0
Last active December 15, 2024 19:37
Show Gist options
  • Select an option

  • Save mz0/281d762000b1fd47ea1708b3efe98255 to your computer and use it in GitHub Desktop.

Select an option

Save mz0/281d762000b1fd47ea1708b3efe98255 to your computer and use it in GitHub Desktop.
Ubuntu 24.04 setting up user with systemd-homed
apt-cache policy systemd-homed
# systemd-homed: Candidate: 255.4-1ubuntu8.4
sudo apt install systemd-homed
# The following NEW packages installed: systemd-homed systemd-userdbd
sudo homectl --real-name=ZM \
--uid=60131 \
--kill-processes=false \
--member-of=docker,dip,lpadmin,plugdev,ops,sudo,users,wireshark \
--ssh-authorized-keys=@/path/to/zm.id_ed25519.pub \
--ssh-authorized-keys=@/path/to/zm.id2.pub \
--storage=luks \
--fs-type=ext4 \
--disk-size='1%' \
create zm
@mz0
Copy link
Author

mz0 commented Dec 14, 2024

homectl create USER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment