I need to find all files in a directory where “other” have permissions to read, write, or execute, and I need to apply those permission to “group”.
rwxr--rw-, this would change it to
But in the case that “group” has permissions but “other” doesn’t, I need to leave it as is.
I need to use one command for this with no pipes.
Any tips you can help me with?