- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find command strangeness
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-15-2004 04:30 AM
07-15-2004 04:30 AM
find ./ -name *.zip.Z
root will come up with the files, but I get no match when a standard user tries the command.
I use this in a script that is compressing and entire directory and then goes back to find any .zip.Z files in the subdirs and uncompresses them (because they became bigger when compress). The script has the system bit turned on so that it runs as root, but the command still doesn't work when run by a standard user. The files are all rw accessible by everyone.
Any ideas as to why this happens or how to get around it would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:37 AM
07-15-2004 04:37 AM
Re: find command strangeness
# find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:37 AM
07-15-2004 04:37 AM
Re: find command strangeness
By using standard users, we can not find the files in privillaged directories. You will get find: cannot open directory error's
Check the directories permission. Standard may not have the permission to search in that. change the directory permission to allow the standard users to search in that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:37 AM
07-15-2004 04:37 AM
Re: find command strangeness
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:39 AM
07-15-2004 04:39 AM
Re: find command strangeness
To clarify my previous - using the quotes to do the find appears to be the answer to my problem. The files and directories involved are all rw for all users, so priveleges are not the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:48 AM
07-15-2004 04:48 AM
Re: find command strangeness
newconfig directory as,
dr-x------ 3 root bin 96 Jul 15 22:07 newconfig
with test.zip.Z file
-rw-rw-rw- 1 root sys 9 Jul 15 22:07 test.zip.Z
Now check the find command,
root> find /opt/hpwebadmin/newconfig/ -name *.zip.Z -exec ll {} \;
-rw-rw-rw- 1 root sys 9 Jul 15 22:07 /opt/hpwebadmin/newconfig/test.zip.Z
Standard user> find /opt/hpwebadmin/newconfig/ -name *.zip.Z -exec ll {} \;
find: cannot open /opt/hpwebadmin/newconfig
So *.zip.Z without "
Move the test.zip.Z to /tmp (drwxrwxrwt permission) then search it as,
user> find /tmp -name *.zip.Z -exec ll {} \;
-rw-rw-rw- 1 root sys 9 Jul 15 22:07 /tmp/test.zip.Z
Generally, some directories are not having permission to allow the standard users for searching.