HomeDevCentral

Ensure /home/username has correct permissions on ZFS servers

Description

Ensure /home/username has correct permissions on ZFS servers

Summary:
If the user exists, but the home directory doesn't exist,
a tank/usr/home/luser ZFS volume is created, mounted at
/home/luser, but with root:root ownership.

This changes adds a step to set correctly home directory
permissions. This step will be ignored on non ZFS servers.

As a side-effect, on development servers, if the change runs
again, the permissions will be reset to 0700. This is coherent
with the policy project experiments should be created in /srv.

Test Plan:

  • Delete an user and home directory
  • state.sls roles/core/users

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2623

Details

Provenance
derecksonAuthored on Mar 22 2022, 18:00
derecksonPushed on Mar 22 2022, 18:02
Reviewer
dereckson
Differential Revision
D2623: Ensure /home/username has correct permissions on ZFS servers
Parents
rOPSe42e3461408f: Fix typo in /etc/periodic path
Branches
Unknown
Tags
Unknown