Lock or unlock a specific home directory

homectl

  • Create, remove, change or inspect home directories using the systemd-homed service.
    More information: <https://manned.org/homectl>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo homectl {{lock|unlock}} {{username}}

click the source code to copy