Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I don't understand this behavior of 'find'

EdStevensOct 9 2012 — edited Oct 9 2012
OL 5.6 x86-64

Looking for all files under /u01 that are owned by root

Just showing the setup and the first page of output as returned by the pipe to 'more':
oracle:orcl$ pwd
/u01

oracle:orcl$ ll
total 12
drwxr-xr-x 5 oracle oinstall 4096 Jan 24  2011 app
drwxr-xr-x 2 oracle oinstall 4096 Mar 31  2010 backup
drwxr-xr-x 5 oracle oinstall 4096 Aug 22  2011 oradata

oracle:orcl$ find . -user root -exec ls -l {} \; |more
total 0
total 116
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 admin
drwxrwx--- 4 root   oinstall  4096 Dec  3  2009 agent
-rwxr-xr-x 1 oracle oinstall 50550 Feb 13  2011 alertitorcl.log
drwxr-x--- 2 oracle oinstall  4096 Feb  4  2011 client
drwxr-x--- 2 root   oinstall  4096 Dec  3  2009 crsd
drwxr-x--- 2 oracle oinstall  4096 Nov 14  2010 cssd
drwxr-x--- 2 root   oinstall  4096 Dec  3  2009 ctssd
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 diskmon
drwxr-x--- 2 oracle oinstall  4096 Feb 13  2011 evmd
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 gipcd
drwxr-x--- 2 root   oinstall  4096 Dec  3  2009 gnsd
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 gpnpd
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 mdnsd
drwxr-x--- 2 oracle oinstall  4096 May 15  2010 ohasd
drwxrwx--- 5 oracle oinstall  4096 Dec  3  2009 racg
drwxr-x--- 2 oracle oinstall  4096 Dec  3  2009 srvm
total 8
drwxrwx--- 2 root oinstall 4096 Dec  3  2009 crsd
drwxrwx--- 5 root oinstall 4096 Dec  3  2009 ohasd
total 12
drwxr-xr-x 2 oracle oinstall 4096 Feb 13  2011 oraagent_oracle
drwxr-xr-x 2 oracle oinstall 4096 Feb  6  2011 oracssdagent_oracle
drwxr-xr-x 2 oracle oinstall 4096 Feb 13  2011 orarootagent_oracle
total 0
total 0
-rw-r----- 1 root root 342 Feb 10  2010 ./app/oracle/product/11.2.0/grid/log/itorcl/client/ocrconfig_22130.log
Notice:
1) except for the last file, (mostly directories) there is no parentage shown
2) even though my spec to 'find' was '-user root' there are several files/dirs that are NOT owned by root.


I'm sure the problem is in my (mis)understanding of some intricacy of 'find' .....
This post has been answered by Dude! on Oct 9 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2012
Added on Oct 9 2012
3 comments
158 views