I'm working on implementing changes as required by CIS standards for section 9.1.12 (CentOS 6.) The following command returns a syntax error:
df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -group -ls
The error I get is:
find: `-ls' is not the name of an existing group
find: `-ls' is not the name of an existing group
find: `-ls' is not the name of an existing group
Can someone please tell me what is wrong with this syntax? The point is to find and print un-grouped files and directories. Thanks in advance.