That is typically the sort I would do. I usually just use the find option "-ls" and not the exec. And for warm and fuzzy feelings you can add a -ls on thd fine command after the chmod's \; On Mon, Jul 29, 2024 at 11:43 AM bruce <badouglas@xxxxxxxxx> wrote: > > Hi > > I'm looking to update the permissions of a bunch of folders within a > dir (not recursively), but I'd like to display the dirs prior to > making changes -- measure twice, then cut. > > find /etc/*/ -maxdepth 0 -type d -exec ls -dal {} \; > --seems to display the list of dirs for the test folder... > > I can then > find /etc/*/ -maxdepth 0 -type d -exec chmod XXX {} \; > (which would match what the dirs are from a cloned system..) > > Is this the "best" approach? > > thanks > -- > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue