I know how to set permissions etc, but rather than:
- Check permissions of one existing folder; and
- Note them down somewhere; and
- Use a command to set the permissions of an adjacent folder to the ones I've noted down
I want to run a command to set permissions of [folder 313] exactly the same as [folder 128].
Ideally, I would be able to set more than one, such that I can set the permissions of [folder 313], [folder 179], [folder 54], and [folder 226] simultaneously with the same permissions as [folder 128].
chmod
support a--reference=RFILE
option? – steeldriver Dec 28 '14 at 01:56chown --reference=RFILE
. And FWIW, GNUtouch
also supports the--reference
option, so you can clone timestamps, too. – PM 2Ring Dec 28 '14 at 04:38I can't work out how to mark this question as "answered", but it is.
– el_gallo_azul Dec 29 '14 at 01:28