- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- World Wriable Files
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
Forums
Discussions
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
07-12-2006 02:44 AM
07-12-2006 02:44 AM
Does anyone have a script that can locate world writable files on a UNIX system
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 02:52 AM
07-12-2006 02:52 AM
Re: World Wriable Files
this should do it.
find /path -perm -o+w
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 02:52 AM
07-12-2006 02:52 AM
Re: World Wriable Files
How about a simple command?
# find /path -xdev -type f -perm -o+w
...If you really want to search the entire server, crossing all mountpoints, drop the '-xdev' argument and do:
# find / -type f -perm -o+w
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 02:57 AM
07-12-2006 02:57 AM
SolutionDavid
This should work:
# Define a spot for the output file
FileOut=/var/adm/world_writable_files.log
DirOut=/var/adm/world_writable_directories.log
#
# Zero out each log file and date stamp it
#
DATE=`date '+%Y-%m-%d'`
echo "# $DATE **World Writeable Files**" > $FileOut
echo "# $DATE **World Writeable Directories**" > $DirOut
#
# Generate a list of filesystems to search. Only search local filesystems
#
FSList=`df --no-sync -l |awk '/dev/{print $6}'`
for f in ${=FSList}; do
find ${f} -type f -xdev -perm -0002 >> $FileOut
find ${f} -type d -xdev -perm -0002 >> $DirOut
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 03:10 AM
07-12-2006 03:10 AM