- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find File Permissions
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
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
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
тАО03-21-2006 08:09 PM
тАО03-21-2006 08:09 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 08:12 PM
тАО03-21-2006 08:12 PM
Re: Find File Permissions
find /dir -type f !\( -perm 0002 -o ! -perm 002 ) -exec ll -d {} \;
For dirs
find /dir -type d \( ! -perm 0002 -o ! -perm 002 \) -exec ll -d {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 08:14 PM
тАО03-21-2006 08:14 PM
Re: Find File Permissions
You can ! with find
# find /dir -type f !\( -perm 0002 -o ! -perm 002 ) -exec ls -l {} \;
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 08:14 PM
тАО03-21-2006 08:14 PM
Re: Find File Permissions
the "!" is the logical not.
So reversing your find condition should get you the data.
find . ! -perm -2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 08:23 PM
тАО03-21-2006 08:23 PM
Re: Find File Permissions
# find . \( -type d -o -type f \) ! -perm -002
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 10:21 PM
тАО03-21-2006 10:21 PM
Re: Find File Permissions
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 10:28 PM
тАО03-21-2006 10:28 PM
Re: Find File Permissions
If you are an "admin", you can modify any files in the system.
Login as the user, and try to run find with ! for that user with write permission.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 10:30 PM
тАО03-21-2006 10:30 PM
Re: Find File Permissions
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2006 10:41 PM
тАО03-21-2006 10:41 PM
Re: Find File Permissions
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 12:43 AM
тАО03-22-2006 12:43 AM
Solutionfind is trying to check all the files and directories as per instruction.
Unless you are root user or equivalent, you will always get these messages.
have you looked into SUDO?
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 08:07 PM
тАО03-22-2006 08:07 PM
Re: Find File Permissions
you can use this to look for file non writer by the user you are logged:
for FilNam in $(find . -type f 2>/dev/null) ;do
if [[ ! -w $FilNam ]]; then
echo file $FilNam not writeable
fi
done
HTH,
Art