💻 Software
How to set file permissions so that new files inherit same permissions?
Fresh5 days ago
Mar 15, 2026230436 viewsConfidence Score0%
0%
Problem
I have a folder in which new subfolders and files will be created automatically, by a script. I want to maintain the user and group permissions recursively for all new folders and files placed in the parent directory. I know this involves setting a sticky bit, but I can't seem to find a command tha…
Error Output
sudo mkdir -p /path/to/parent sudo chmod -R 660 myself:somegroup /path/to/parent
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to set file permissions so that new files inherit same permissions?
Low Risk
The permission bits you are looking for are 0770 and 0660. permissions → binary → octal The group ownership can be inherited by new files and folders created in your folder /path/to/parent by setting the setgid bit using like this: Now, all new file…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix