You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
We are facing attempt to write a readonly database when two users used the shared Conan directory in Linux with Conan v2 version 2.10.0.
Steps to reproduce:
Part-1: Run the below command login as the user has admin access.
Create a common folder for conan tools chains to download and install:
$ mkdir -p /data/conan/
Create group:
$ sudo groupadd conan_developers
Change the Ownership of the common conan folder as mentioned below:
$ sudo chown -R root:conan_developers /data/conan/
Give the folder/file permission to the user and group as “770”
$ sudo chmod -R 770 /data/conan/
Perform the following command to add the user1 and user2 to the 'conan_developers' group and sets their primary group to 'conan_developers'.
$ usermod -aG conan_developers -g conan_developers
Still, even if this was possible from the python+sqlite+system file permissions, sharing the cache is still very discouraged, so I wouldn't recommend doing it anyway.
What is your question?
Description:
We are facing attempt to write a readonly database when two users used the shared Conan directory in Linux with Conan v2 version 2.10.0.
Steps to reproduce:
Part-1: Run the below command login as the user has admin access.
$ mkdir -p /data/conan/
$ sudo groupadd conan_developers
$ sudo chown -R root:conan_developers /data/conan/
$ sudo chmod -R 770 /data/conan/
$ usermod -aG conan_developers -g conan_developers
Part-2: Run the below command login as - user1.
$ echo 'export PATH=${HOME}/.local/bin:${PATH}' >> ${HOME}/.bashrc
$ source ${HOME}/.bashrc
$ sudo apt-get update
$ sudo apt-get install python3-pip -y
$ python3 -m pip install pip==23.3.2
$ echo 'export CONAN_HOME=/data/conan/.conan2’ >> ${HOME}/.bashrc
$ echo 'umask 0007' >> ${HOME}/.bashrc
$ source ~/.bashrc
$ chmod 700 ~
$ python3 -m pip install conan==2.10.0
$ conan profile detect --force
$ conan profile show -pr default
conanfile.txt
Part-3: Run the below command login as – user2.
$ echo 'export PATH=${HOME}/.local/bin:${PATH}' >> ${HOME}/.bashrc
$ source ${HOME}/.bashrc
$ echo 'export CONAN_HOME=/data/conan/.conan2’ >> ${HOME}/.bashrc
$ echo 'umask 0007' >> ${HOME}/.bashrc
$ source ~/.bashrc
$ chmod 700 ~
$ python3 -m pip install conan==2.10.0
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: