Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

FIND INSECURE 777 PERMISSION FILES ON CPANEL SERVER

// FIND INSECURE 777 PERMISSION FILES ON CPANEL SERVER

find /home/*/public_html/ -perm 0777 -ls
find /home*/public_html/ -uid 99 -ls

Fix permissions on a directory

// Fix permissions on a directory

chown -R youruser:youruser /thedirectory
find /thedirectory -type f -exec chmod 0644 {} \;
find /thedirectory -type d -exec chmod 0755 {} \;

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed