Friday, September 14, 2012
Why we shouldn't give 777 to any directory in UNIX or LINUX?
Giving 777 to any directory in UNIX or Linux or UNIX based Operating System is a potential security risk. Because if a directory contains 777 permission, then any user can get inside the directory and remove other users files or directories. At times, we may need to permit all users to get in to the same directory and also need to allow them to create files and directories. In that case, we have to set 'sticky' bit for the particular directory to avoid the issue of removal of other users files intentionally.
Posted by Sujay Kumar