Using Raspbian Buster, I have 2 users, The root user (pi) and a user I setup (polysense). I have a script that runs at startup that is owned by the root user. Part of the script is that it writes to a file on the polysense account. However I am getting a permissions error when the script runs.
sudo chmod 777 configSite as
configSite is the folder that contains the files I need to write to.
When I view the permissions, it does not change. What am I doing wrong here?
I am expecting to see
drwxr-xr-rwx for the files inside configSite.
pi@polysensesolutions:~ $ cd /home/polysense/ pi@polysensesolutions:/home/polysense $ sudo chmod 777 configSite pi@polysensesolutions:/home/polysense $ cd configSite pi@polysensesolutions:/home/polysense/configSite $ ls -l total 164 -rw-r--r-- 1 root root 1985 Sep 17 04:25 '>' drwxr-xr-x 3 polysense polysense 4096 Sep 2 16:33 configSite -rw-r--r-- 1 root root 143360 Sep 17 04:25 db.sqlite3 -rwxr-xr-x 1 polysense polysense 630 Sep 2 15:51 manage.py drwxr-xr-x 4 polysense polysense 4096 Sep 2 16:34 pages drwxr-xr-x 2 polysense polysense 4096 Sep 17 04:12 templates drwxr-xr-x 4 polysense polysense 4096 Sep 17 04:25 wifiApp