title: Is chmod 777 safe for Shiny app hosted on AWS EC2?
body: <p>I've hosted a web application (using <code>Shiny</code>, a R package for interactive web applications) on AWS EC2. I've also set up an authentication mechanism on the app with <code>shinymanger</code>(<a href="https://datastorm-open.github.io/shinymanager/" rel="nofollow noreferrer">https://datastorm-open.github.io/shinymanager/</a>). This authentication requires reading and writing from a sqlite database (<code>database.sqlite</code>) that stores user information (username, password, etc). In order to create new users in the authentication system, I need &quot;write&quot; permission, so I changed the permissions of the sqlite database with <code>chmod 777</code></p>
  <p><a href="https://i.stack.imgur.com/inXjS.png" rel="nofollow noreferrer">Screenshot of user permission of sqlite database</a></p>
  <p><strong>Question</strong>: The AWS server is only owned by one other person, but I'm worried that since the web application is hosted on a public IP address, bad people could infiltrate the sensitive data. Is this permission setting safe? If not, how do I change the permission setting so that I can still read, write, and do everything that 777 allows, but safer!</p>