Quantcast
Viewing all articles
Browse latest Browse all 2052

Permissions for custom PHP app in Lampstack

I've followed these instructions to install a custom PHP app in a Bitnami lampstack: http://wiki.bitnami.org/Applications/BitNami_Custom_PHP_application

After finishing the process, my folder permissions are as follows (owner:group)

/apps/myapp/conf --> root:root
/apps/myapp/htdocs --> root:root

All the folders inside htdocs have the following permissions (owner:group)

bitnami:bitnami 775

Now, I understand that these configurations are the most secure, but I have problems with the "daemon" user writing to some folders inside "htdocs", because the "daemon" user does NOT belong to the "bitnami" group. When I run the following command, it shows that the "daemon" user only belongs to the "dameon" group:

$ groups daemon
daemon : daemon

My app requires, for installation and for Back Office tasks, that the "daemon" user has write permissions to specific folders inside the htdocs directory.

So, with the current permissions, obtained by following the bitnami wiki steps, Which would be the best (and more secure) way to give the user "daemon" write permission to some folders in the htdocs directory?

  1. Add the "daemon" user to the "bitnami" group
  2. Do something like this: (sudo chown -R bitnami:daemon /path/to/required/folder)
  3. Other?

BTW: I'm trying to avoid changing permissions to 777 to the required folders, which works.


Viewing all articles
Browse latest Browse all 2052

Trending Articles