FG
💻 Software

Chmod files to recursively give group same permissions as user

Fresh7 days ago
Mar 15, 202613866 views
Confidence Score0%
0%

Problem

Is there a unix command to give the group the same permissions as the user currently has on a file-by-file basis recursively for a directory tree? I.e. if a file is user writeable it should become group writeable, otherwise it should not be group writeable and so on.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Chmod files to recursively give group same permissions as user

Low Risk

Kudos to jamessan for showing us g=u. On my system, this seems to work:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment