Skip to content

Tag: permissions

Potential issues of chmod 777 on a directory?

Assuming that I have this directory structure: /tmp/mysockets/appname/ What are the security drawbacks to doing chmod 777 on /tmp/mysockets/? Could another user delete or mess with the reference to the appname/ directory? What I want to do is allow other users to add their own directories to /tmp/mysockets/ b…

Change file owner group under Linux with java.nio.Files

I have a Linux server and I’m running an image resize job in Java for multiple websites on my server. The website files are owned by different OS users/groups. Newly created thumbnails/previews are owned by the user running the resize job. Now I was googleing around how to change the file owner of newly…