linux - Potential issues of chmod 777 on a directory? -


assuming have directory structure: /tmp/mysockets/appname/

what security drawbacks doing chmod 777 on /tmp/mysockets/? user delete or mess reference appname/ directory? want allow other users add own directories /tmp/mysockets/ don't want allow them rename or delete files/subdirectories inside (owned user).

i think looking sticky bit, thats want. permissions 777 grant read/write permissions therefore files can removed/renamed

a sticky bit permission bit set on directory allows owner of file within directory or root user delete or rename file. no other user has needed privileges delete file created other user.

to set sticky bit use following

chmod o+t /tmp/mysockets/

or e.g.

chmod 1757 /tmp/mysockets/


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -