When updating the OneDrive client on Linux, the following error occurred after following the instructions:
"permission denied open config in w mode"
To resolve this issue, a simple approach is to run the container as root first, and then as the onedrive user once the directory permissions have been updated. Alternatively, a more detailed method involves overriding the entrypoint to investigate the issue and find that the /onedrive/data directory is owned by root. To fix this, the entrypoint.sh script can be bypassed by running the container as root. This can be achieved by adding the flag '-e "ONEDRIVE_RUNAS_ROOT=1"' to the docker run command.
Once the container is running as root, the directory permissions are updated, and the container can be run as the onedrive user without issues. However, a subsequent problem arises - newly created local files and directories are owned by root and are inaccessible by the user. This can be resolved by running the container as the onedrive user after the directory permissions have been updated.