- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find the files that are world writeable in ...
Operating System - HP-UX
1753797
Members
7843
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-11-2009 02:24 PM
тАО05-11-2009 02:24 PM
Hi,
Is there any script or command to find the files which are world writeable in HP UX 11.11 v1 system? That will give me directory path, owner, group and permission of the files.
Is there any script or command to find the files which are world writeable in HP UX 11.11 v1 system? That will give me directory path, owner, group and permission of the files.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 02:48 PM
тАО05-11-2009 02:48 PM
Solution
HI:
# find /path -perm -o+w -exec ls -ld {} +
...will find all files and directories in '/path' that are world-writeable and do a long-listing of them to show their ownership, permissions, name, etc.
If you want to restrict this only to files (and not directories), do:
# find /path -type f -perm -o+w -exec ls -ld {} +
If you want to examine the root directory, but not visit mountpoints (like '/usr' and '/var'), use the '-xdev' switch:
# find / -xdev -type f -perm -o+w -exec ls -ld {} +
Regards!
...JRF...
# find /path -perm -o+w -exec ls -ld {} +
...will find all files and directories in '/path' that are world-writeable and do a long-listing of them to show their ownership, permissions, name, etc.
If you want to restrict this only to files (and not directories), do:
# find /path -type f -perm -o+w -exec ls -ld {} +
If you want to examine the root directory, but not visit mountpoints (like '/usr' and '/var'), use the '-xdev' switch:
# find / -xdev -type f -perm -o+w -exec ls -ld {} +
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 07:36 PM
тАО05-11-2009 07:36 PM
Re: How to find the files that are world writeable in system.
Hi Uttekar,
You could use find on each server:
find / -perm -o+w
Check the links:
http://bash.cyberciti.biz/monitoring/find-all-world-writable-files-directories/
http://www.softpanorama.org/Tools/Find/finding_world_writable_abandoned_and_other_abnormal_files.shtml
http://opensolaris.org/os/community/security/files/s10-setid-infodoc-v0.6.pdf;jsessionid=6EBAB3C06DF944AB87B751A311EA006D
Rgds-Kranti
You could use find on each server:
find / -perm -o+w
Check the links:
http://bash.cyberciti.biz/monitoring/find-all-world-writable-files-directories/
http://www.softpanorama.org/Tools/Find/finding_world_writable_abandoned_and_other_abnormal_files.shtml
http://opensolaris.org/os/community/security/files/s10-setid-infodoc-v0.6.pdf;jsessionid=6EBAB3C06DF944AB87B751A311EA006D
Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 09:20 AM
тАО05-13-2009 09:20 AM
Re: How to find the files that are world writeable in system.
Hi thanks for the solution.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP