- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need find command to look user owenr "web" "we...
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
11-09-2006 08:12 AM
11-09-2006 08:12 AM
Need owner name and full path file name only.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:28 AM
11-09-2006 08:28 AM
Re: Need find command to look user owenr "web" "webadm" files from /
But I tried but for some reason, I still get the automouted file system (starting with /net/xxx) ? is there any way to ignore those )
# find / -type f \( -user webadmin -o -user afemgr \) ! -fstype nfs
cannot open /proc/18122: No such file or directory
/proc/2347/fd/9
/proc/2347/fd/13
/proc/2347/object/vxfs.273.104015.2352
/proc/2347/object/vxfs.273.104015.2350
/proc/2347/object/vxfs.273.104015.2364
find: cannot read dir /net/houpnapp2/vol/vol0/etc/crash: Permission denied
find: cannot read dir /net/houpnapp2/vol/vol0/etc/.zapi: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:36 AM
11-09-2006 08:36 AM
Re: Need find command to look user owenr "web" "webadm" files from /
1) You are not on HP-UX. This appears to be Linux. Please remember that you posted this in HP-UX so people will assume that you are running HP-UX unless stated otherwise.
2) The find command *MAY* very well behave slightly differently on Linux. Your best bet would be to have a read through 'man find' and see what you can come up with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:47 AM
11-09-2006 08:47 AM
Re: Need find command to look user owenr "web" "webadm" files from /
You can search a single file system (that is, in most cases, a single mount point) by just specifying "-xdev" in your find command.
Then, just do your search for "web" and "webadm" in each file system separately:
(the following should work just as well on Linux as HPUX - it assumes your nfs mount points would not be mounting from anything called "dev" - which is unlikely, but may not work in your case, so just check for that):
for i in `df -k | grep \/dev\/ | cut -f1 -d ""`
do
echo searching file system $i
find $i -xdev -type f \( -user web -o -user webadm \)
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:49 AM
11-09-2006 08:49 AM
Re: Need find command to look user owenr "web" "webadm" files from /
for i in `df|grep \/dev\/ | cut -f1 -d ""`
do
echo searching file system $i
find $i -xdev -type f \( -user web -o -user webadm \)
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 03:03 AM
11-13-2006 03:03 AM
Re: Need find command to look user owenr "web" "webadm" files from /
you are right . i am doing on solaris 9 but also needed to do on hpux11.11 . It works fine there and thanks.
John,
Your script seems great for solaris based system.Appreciate it for providing an alternate. only thing is I had to put space between " " to just get the fs from cut. Maybe you meant it like that anyway.
Thanks a bunch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 03:08 AM
11-13-2006 03:08 AM