0

Is it possible to check if a folder (and all subfolders) are owned by a specific user/rights?

As Example: Can I use cmake to check if /var/www/** is owned by www-data and has the permission to execute files?

tshepang
  • 12,111
  • 21
  • 91
  • 136
NaN
  • 3,501
  • 8
  • 44
  • 77

1 Answers1

1

CMake does not have this functionality built-in, but you can use a third party CMake module to obtain file permission and owner information.

sakra
  • 62,199
  • 16
  • 168
  • 151