I have to do an audit concerning the removal of root privileges for a server. To minimize the risk of something breaking or going the way of the dodo, i want to search for all root owned files/folders inside non root owned folders.
Is there a way to find and list the files such as:
> ls -la
drwxr-xr-x. 24 admin users 4096 Sep 27 12:53 . [non root folder]
dr-xr-xr-x. 28 root root 4096 Mar 15 2017 ..
drwxrwxr-x. 2 admin users 4096 Sep 27 13:00 bin
drwxr-xr-x. 6 root root 4096 Feb 9 2017 monit [root file/folder]
as
/bin/opt/monit
...
Thank you.