title: Using Regex to determine if linux files perms are default or "more secure"
body: <p>I've found a few topics on this - the most relevant so far here (<a href="https://stackoverflow.com/questions/13419023/regex-for-linux-file-permissions-numeric-notation">Regex for Linux file permissions (numeric notation)</a>) but still not quite getting this...</p>
  
  <p>I want to use a regex to determine when a files permission is "more secure" or alternatively "less secure" than a pre-defined default. </p>
  
  <p>Example: I expect a default of 644, but 640, and even 600 is "ok" because it is actually more secure than 644.</p>
  
  <p>The opposite approach would be to match any files with a security "less secure" than 644, so 677, 607, etc would match on this condition.</p>
  
  <p>Im thinking more/less secure might be too subjective (ex. is 744 more, less or same as 644 in this context since only the "owner" actually has elevated perms)? Is regex the wrong way to approach this?</p>
  
  <p>Thanks!</p>