From dc4cb6be9eb01e0b0949addd5bf8d3941ef58ca7 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 26 Feb 2024 12:19:53 -0300 Subject: [PATCH] core: ensure folders in userdata are useable by all users --- core/start-blueos-core | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/start-blueos-core b/core/start-blueos-core index 68aa1fa6fa..44e3f7a6b9 100755 --- a/core/start-blueos-core +++ b/core/start-blueos-core @@ -87,7 +87,11 @@ else fi # fix permissions for logging folders: +# we need 777 in order for other users to be able to alter it find /var/logs/blueos -type d -exec chmod 777 {} \; +mkdir -p /usr/blueos/userdata/settings +find /usr/blueos -type d -exec chmod 777 {} \; +find /usr/blueos -type f -exec chmod a+rw {} \; # These services have priority because they do the fundamental for the vehicle to work, # and by initializing them first we reduce the time users have to wait to control the vehicle.