Fix ownership

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_fix_ownership

Purpose

Recursively assign a path to the invoking user and that user’s primary group.

Arguments

  • $1 — File or directory path.

Side effects

Calls chown -R on the supplied path.

Returns

Returns the exit status of chown.

Usage

  sgnd_fix_ownership "/tmp/sgnd-example"