Use the find utility to scan for writable directories

For discussions about security.
Post Reply
Message
Author
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

Use the find utility to scan for writable directories

#1 Post by Flash »

http://blogs.techrepublic.com.com/secur ... ag=nl.e036
....it is pretty easy to scan a system for directories that have group or world write permissions on BSD Unix and Linux-based systems, if you use the tools you have at your fingertips on a default install. To get verbose output for an audit of directory group and world write permissions across the entire system, the following command works well:

Code: Select all

# find / -type d \( -perm -g+w -or -perm -o+w \) -exec ls -adl {} \;
....

Post Reply