Page MenuHomeDevCentral

Ensure /home/username has correct permissions on ZFS servers
ClosedPublic

Authored by dereckson on Mar 22 2022, 18:00.
Tags
None
Referenced Files
F28201650: D2623.diff
Sun, May 10, 13:42
F28104527: D2623.diff
Sun, May 10, 01:35
F28023802: D2623.id6629.diff
Sat, May 9, 15:29
Unknown Object (File)
Sat, May 9, 13:39
Unknown Object (File)
Mon, May 4, 10:30
Unknown Object (File)
Mon, May 4, 09:50
Unknown Object (File)
Mon, Apr 27, 03:40
Unknown Object (File)
Sun, Apr 26, 16:03
Subscribers
None

Details

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

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4116
Build 4368: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Mar 22 2022, 18:02