- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find files/directories which are writable by other...
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
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
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
тАО10-13-2005 04:29 PM
тАО10-13-2005 04:29 PM
How to list files/directories which are writable by "others" group ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 04:33 PM
тАО10-13-2005 04:33 PM
Re: Find files/directories which are writable by others group
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 04:40 PM
тАО10-13-2005 04:40 PM
Re: Find files/directories which are writable by others group
rwxrwxrwx
^
|
|-----"I want to find the files/directories with world writable"
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 04:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 04:50 PM
тАО10-13-2005 04:50 PM
Re: Find files/directories which are writable by others group
# find / -perm -2 (list only world writable)
# find / -local -perm -2 (Only Local FS)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 04:57 PM
тАО10-13-2005 04:57 PM
Re: Find files/directories which are writable by others group
find /dir -type f -perm \(0002 -o -0020\) -exec ll -d {} \;
find /dir -type d -perm \(0002 -o -0020\) -exec ll -d {} \;
You can also do as follows.
find /dir -type f -perm o+w -exec ll -d {} \;
find /dir -type d -perm o+w -exec ll -d {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 05:11 PM
тАО10-13-2005 05:11 PM
Re: Find files/directories which are writable by others group
These are security holes, find and remove them if not required.
Run:
For finding world writable files
-------------------------------------
find / -type f -perm -2 -exec ls -lg {} \;
For world writable directories:
----------------------------------
find / -type d -perm -2 -exec ls -ldg {} \;
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 06:49 PM
тАО10-13-2005 06:49 PM
Re: Find files/directories which are writable by others group
will do it.
It checks for,
a) group name with others
b) permission with group writable
c) File type
d) Or Directory
prints full information with ls -l {}
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 07:11 PM
тАО10-13-2005 07:11 PM
Re: Find files/directories which are writable by others group
i believe u should have most of your answers in this post.
show your appreciation to those who have assisted u in finding your answers.
i think u should look at the points u have assigned. 2 out of 43 (and counting) is not good.
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA685971&listType=unassigned&forumId=1
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 09:23 PM
тАО10-13-2005 09:23 PM