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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -