diff --git a/scripts/install b/scripts/install index 00dbe4f..a6e5f51 100644 --- a/scripts/install +++ b/scripts/install @@ -159,7 +159,9 @@ fi ynh_script_progression --message="Securing files and directories..." # Set permissions to app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #================================================= diff --git a/scripts/restore b/scripts/restore index b38ec57..8517442 100644 --- a/scripts/restore +++ b/scripts/restore @@ -138,7 +138,9 @@ ynh_replace_string "allowed_users=console" "allowed_users=anybody" /etc/X11/Xwra ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 023c556..e24bf73 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,7 +140,9 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #=================================================