Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Whatpermissionsfor nginx/html/restyaboard/server/php/shell ?

72 views
Skip to first unread message

CW Holeman II

unread,
Mar 23, 2022, 1:07:27 AM3/23/22
to Restya
I am constantly getting this email:

        Restyaboard / From cron (main.sh
        to restyabroad
        Please check the permission for the shell folder of main.sh in your server

What permissions should shell be set to?

/usr/share/nginx/html/restyaboard/server/php/shell$ ls -al main.sh
-rw-r-xr-x 1 root root 867 Mar 21 14:07 main.sh
$ uname -a
Linux mememe 5.13.0-37-generic #42-Ubuntu SMP Tue Mar 15 14:34:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

RESTYABOARD_VERSION=v1.7.1

Restya

unread,
Mar 23, 2022, 1:08:33 AM3/23/22
to Restya
For the shell script file "main.sh", you need to apply the executable permission,

For the permissions for the other restyaboard files, please refer to the link https://github.com/RestyaPlatform/board/blob/master/restyaboard.sh#L1566-L1597 

CW Holeman II

unread,
Mar 25, 2022, 12:34:51 AM3/25/22
to Restya
Not see anything obvious addressing the permissions on shell.

$ grep shell restyaboard.sh 
                        sed -i "s/*\/5 * * * * $dir\/server\/php\/shell\/chat_activities.sh//" /var/spool/cron/crontabs/root
                        sed -i "s/0 * * * * $dir\/server\/php\/shell\/periodic_chat_email_notification.sh//" /var/spool/cron/crontabs/root
                        sed -i "s/*\/5 * * * * $dir\/server\/php\/shell\/indexing_to_elasticsearch.sh//" /var/spool/cron/crontabs/root
                        rm $dir/server/php/shell/chat_activities.sh
                        rm $dir/server/php/shell/chat_activities.php
                        rm $dir/server/php/shell/indexing_to_elasticsearch.sh
                        rm $dir/server/php/shell/indexing_to_elasticsearch.php
                        rm $dir/server/php/shell/periodic_chat_email_notification.sh
                        rm $dir/server/php/shell/periodic_chat_email_notification.php
                        rm $dir/server/php/shell/upgrade_v0.2.1_v0.3.php
                        sed -i "s/*\/5 * * * * $dir\/server\/php\/shell\/chat_activities.sh//" /var/spool/cron/crontabs/root
                        sed -i "s/0 * * * * $dir\/server\/php\/shell\/periodic_chat_email_notification.sh//" /var/spool/cron/crontabs/root
                        sed -i "s/*\/5 * * * * $dir\/server\/php\/shell\/indexing_to_elasticsearch.sh//" /var/spool/cron/crontabs/root
                        rm $dir/server/php/shell/chat_activities.sh
                        rm $dir/server/php/shell/chat_activities.php
                        rm $dir/server/php/shell/indexing_to_elasticsearch.sh
                        rm $dir/server/php/shell/indexing_to_elasticsearch.php
                        rm $dir/server/php/shell/periodic_chat_email_notification.sh
                        rm $dir/server/php/shell/periodic_chat_email_notification.php
                        rm $dir/server/php/shell/upgrade_v0.2.1_v0.3.php
                                echo "*/5 * * * * $dir/server/php/shell/main.sh > /dev/null 2> /dev/null" >> /var/spool/cron/crontabs/root
                                echo "*/5 * * * * $dir/server/php/shell/main.sh > /dev/null 2> /dev/null" >> /var/spool/cron/root
                        chmod +x $dir/server/php/shell/main.sh
                        chmod +x $dir/server/php/shell/main.sh
                                echo "*/5 * * * * $dir/server/php/shell/main.sh > /dev/null 2> /dev/null" >> /var/spool/cron/crontabs/root
                                echo "*/5 * * * * $dir/server/php/shell/main.sh > /dev/null 2> /dev/null" >> /var/spool/cron/root
Reply all
Reply to author
Forward
0 new messages