- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Using "FIND" to locate files with modes greater th...
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
06-19-2007 01:49 AM
06-19-2007 01:49 AM
Using "FIND" to locate files with modes greater than 644
Anyone?
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:16 AM
06-19-2007 02:16 AM
Re: Using "FIND" to locate files with modes greater than 644
~thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:24 AM
06-19-2007 02:24 AM
Re: Using "FIND" to locate files with modes greater than 644
744
754
764
and so on. But I am with you, what defines greater than 644? Could 477 possibly be greater than 644?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:25 AM
06-19-2007 02:25 AM
Re: Using "FIND" to locate files with modes greater than 644
If by "greater than 644" you mean numerically greater, as for example "650" then something linke this (using Perl) :
# perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ && ((stat(_))[2] & 07777) >= 0644},@ARGV)' /dir
...substitute whatever you need for the "/dir" path.
Regards!
...JRF...
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:31 AM
06-19-2007 02:31 AM
Re: Using "FIND" to locate files with modes greater than 644
I need to create a list of all files with a mode greater than what you see below
-rw-r--r-- (644)
For example:
-rwx-r--r-- (744) or
-rw-rw-r-- (664) or
-rw-rw-rw- (666) and so on.
In other words, the list needs to include all files with the following permissions and/or characteristics:
owner execute, group write/execute and world write/execute.
So, the following (x'd) mode bits are disallowed:
---x-xx-xx
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:36 AM
06-19-2007 02:36 AM
Re: Using "FIND" to locate files with modes greater than 644
Also, yes... 477 is greater than 644 in that the "permissions" or (some) of the digits are greater ... while the combined absolute value of all of the digits might not necessarily be so. Once again, I should have been more specific.
Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2007 02:48 AM
06-19-2007 02:48 AM
Re: Using "FIND" to locate files with modes greater than 644
No Perl? Boo. OK, then try a long-hand approach using 'find' and something like:
# find /path -type f -perm -u+s -o -perm -u+w
...etc.
Regards!
...JRF...