Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 09:52 AM
07-18-2007 09:52 AM
i have used the below command
find / -user
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 11:09 AM
07-18-2007 11:09 AM
Re: find
I prefer adding negated '-path' as:
# find / -user
Note that on 11.0 and later, the use of the '+' terminator improves performance by bundling multiple arguments to the object of the '-exec' much like 'xargs' would do.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 12:52 PM
07-18-2007 12:52 PM
Re: find
find / -user
\( -path "/.snapshot/*" -o -path "/amd_mnt/*" -type f \) |
xargs -n1 chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 09:54 PM
07-18-2007 09:54 PM
Re: find
You have operator precedence issues with your command. -a has higher percedence than -o, so you need extra \( \). And you should use -exec {} +
I'm not sure why you have that second check for file versions of those two paths?
Was that "\" a "!"?
If so, you probably want an extra "*" before
/.snapshot/*. Since I believe there are lots of those directories, at every level.
find / -user
! \( \( -path "/.snapshot/*" -o -path "/amd_mnt/*" \) -type f \) -exec chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:34 AM
07-19-2007 02:34 AM
Re: find
Glad you noticed the find(1) I posted as it frankly does not make much sense. Moreover the catchall {} + operator is more efficient over pipelining it to xargs(1). Guess that what happens when postings are untested :( and so here is the tested version of the find(1) posted earlier and hope it helps :)
find / -user
! \( -path "/.snapshot" -o \
-path "/.snapshot/*" -o \
-path "/amd_mnt" -o \
-path "/amd_mnt/*" \) \
-exec chown