board icon indicating copy to clipboard operation
board copied to clipboard

IMAP Issue

Open razor950 opened this issue 4 years ago • 6 comments

I am getting e-mails that say this "Please check the permission for the shell folder of main.sh in your server"

I am actually not sure why the issue occurs fully or why doesn't it jut correctly assign its permissions, the folder that gets made ends up being a root:root and not a nginx:nginx owner:group so I don't know if that is part of the issue? I can nuke the folder and it'll be fine for a while but eventually it'll go back to spamming this.

razor950 avatar Jan 10 '22 16:01 razor950

@razor950 Can you please tell us the instructions you have followed for the Restyaboard installation? If you have installed Restayboard with Installation script restyaboard.sh, it will add the restyaboard user and create restyaboard group and it will apply suitable permisssion to the files

sridhar391 avatar Jan 11 '22 04:01 sridhar391

I run restyaboard as a docker container, maybe those need to be updated with proper permissions?

razor950 avatar Jan 12 '22 13:01 razor950

I had to change docker-scripts/docker-entrypoint.sh to eliminate the messages.

daryl-o avatar Jan 13 '22 10:01 daryl-o

@daryl-o what did you change in it?

razor950 avatar Jan 13 '22 16:01 razor950

What I changed was overkill but I didn't feel like taking the time to narrow down further.

<   chown -R nginx:nginx /var/lib/nginx/html/tmp
<   chmod -R 777 /var/lib/nginx/html/tmp
<   chmod -R ugo+w /var/lib/nginx/html/client/img
<   chmod -R ugo+w /var/lib/nginx/html/server/php/shell
---
>   chown -R nginx:nginx /var/lib/nginx/html/tmp/cache

daryl-o avatar Jan 18 '22 16:01 daryl-o

I can confirm the behavior, thanks for the workaround @daryl-o

dominikfehr avatar Feb 09 '22 09:02 dominikfehr