Which configuration files can be written in /etc/?

ls -aRl /etc/ | awk ‘$1 ~ /^.*w.*/’ 2>/dev/null           # Anyone

ls -aRl /etc/ | awk ‘$1 ~ /^..w/’ 2>/dev/null                # Owner

ls -aRl /etc/ | awk ‘$1 ~ /^…..w/’ 2>/dev/null             # Group

ls -aRl /etc/ | awk ‘$1 ~ /w.$/’ 2>/dev/null                   # Other

find /etc/ -readable -type f 2>/dev/null                          # Anyone

find /etc/ -readable -type f -maxdepth 1 2>/dev/null   # Anyone

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s