payload: {"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/7227","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/7227/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/7227/comments","events_url":"https://api.github.com/repos/conda/conda/issues/7227/events","html_url":"https://github.com/conda/conda/issues/7227","id":318352332,"node_id":"MDU6SXNzdWUzMTgzNTIzMzI=","number":7227,"title":"Write permission error with a shared package cache folder","user":{"login":"emi80","id":2760700,"node_id":"MDQ6VXNlcjI3NjA3MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2760700?v=4","gravatar_id":"","url":"https://api.github.com/users/emi80","html_url":"https://github.com/emi80","followers_url":"https://api.github.com/users/emi80/followers","following_url":"https://api.github.com/users/emi80/following{/other_user}","gists_url":"https://api.github.com/users/emi80/gists{/gist_id}","starred_url":"https://api.github.com/users/emi80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emi80/subscriptions","organizations_url":"https://api.github.com/users/emi80/orgs","repos_url":"https://api.github.com/users/emi80/repos","events_url":"https://api.github.com/users/emi80/events{/privacy}","received_events_url":"https://api.github.com/users/emi80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T10:09:14Z","updated_at":"2019-08-05T14:08:33Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nHi!  Read this; it's important.\r\n\r\nThis is an issue tracker for conda -- the package manager.  File feature requests\r\nfor conda here, as well as bug reports about something conda has messed up.\r\n\r\nIf your issue is a bug report or feature request for:\r\n  * a specific conda package from Anaconda ('defaults' channel):\r\n      ==> file at https://github.com/ContinuumIO/anaconda-issues\r\n  * a specific conda package from conda-forge:\r\n      ==> file at the corresponding feedstock under https://github.com/conda-forge\r\n  * repo.anaconda.com access and service:\r\n      ==> file at https://github.com/ContinuumIO/anaconda-issues\r\n  * anaconda.org access and service:\r\n      ==> file at https://anaconda.org/contact/report\r\n  * commands under 'conda build':\r\n      ==> file at https://github.com/conda/conda-build\r\n  * commands under 'conda env':\r\n      ==> please file it here!\r\n  * all other conda commands that start with 'conda':\r\n      ==> please file it here!\r\n\r\nIf you continue on, and especially if you are submitting a bug report,\r\n\r\n   **please include all requested information below.**\r\n\r\nIf a maintainer determines the information is required to understand \r\nyour issue, and if it is not provided, your issue may be\r\nclosed automatically.\r\n\r\n-->\r\n\r\n**I'm submitting a...**\r\n  - [x] bug report\r\n  - [ ] feature request\r\n\r\n\r\n## Current Behavior\r\n<!-- What actually happens?\r\n     If you want to include console output, please use \"Steps to Reproduce\" below. -->\r\nI would like to share the package cache folder of a miniconda install with users in a linux group. I set group write permission for the folder and also set the `guid` bit. With a fresh install, the first user has no problem but the subsequent users get a permission error.\r\n\r\nI looked within currently open issues but I could not find anything related to my problem. Please point me to anything relevant if I am wrong.\r\n\r\nThanks a lot.\r\n### Steps to Reproduce\r\n<!-- If the current behavior is a bug, please provide specific, minimal steps to independently reproduce.\r\n     Include the exact conda commands that reproduce the issue and their output between the ticks below. -->\r\n```\r\n# main install in /software/miniconda\r\n$ chmod -R 02775 /software/miniconda/pkgs\r\n\r\n# first user, download a simple package\r\n$ conda install --download-only zip \r\n# OK\r\n\r\n# second user\r\n$ conda create -n test\r\nSolving environment: done\r\n\r\nNotWritableError: The current user does not have write permissions to a required path.\r\n  path: /software/miniconda/pkgs/cache/47929eba.json\r\n  uid: 32061\r\n  gid: 32000\r\n\r\nIf you feel that permissions on this path are set incorrectly, you can manually\r\nchange them by executing\r\n\r\n  $ sudo chown 32061:32000 /software/miniconda/pkgs/cache/47929eba.json\r\n\r\nIn general, it's not advisable to use 'sudo conda'.\r\n```\r\n\r\n\r\n## Expected Behavior\r\n\r\nThere should maybe be a way to specify the umask when creating the files or to flag the package cache folder as shared in some way.\r\n\r\n\r\n## Environment Information\r\n<details open><summary><code>`conda info`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda info' -->\r\n\r\n```\r\n\r\n     active environment : None\r\n            shell level : 0\r\n       user config file : /home/user/.condarc\r\n populated config files : /software/miniconda/.condarc\r\n          conda version : 4.5.1\r\n    conda-build version : not installed\r\n         python version : 2.7.14.final.0\r\n       base environment : /software/miniconda  (read only)\r\n           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/free/linux-64\r\n                          https://repo.anaconda.com/pkgs/free/noarch\r\n                          https://repo.anaconda.com/pkgs/r/linux-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n                          https://repo.anaconda.com/pkgs/pro/linux-64\r\n                          https://repo.anaconda.com/pkgs/pro/noarch\r\n          package cache : /software/miniconda/pkgs\r\n       envs directories : /home/user/.conda/envs\r\n                          /software/miniconda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.5.1 requests/2.18.4 CPython/2.7.14 Linux/3.10.0-693.5.2.el7.x86_64 debian/9 glibc/2.24\r\n                UID:GID : 32061:32000\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n</p></details>\r\n\r\n\r\n<details open><summary><code>`conda config --show-sources`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda config --show-sources' -->\r\n\r\n```\r\n==> /software/miniconda/.condarc <==\r\npkgs_dirs:\r\n  - /software/miniconda/pkgs\r\n```\r\n</p></details>\r\n\r\n\r\n<details><summary><code>`conda list --show-channel-urls`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda list --show-channel-urls' -->\r\n\r\n```\r\n# packages in environment at /software/miniconda:\r\n#\r\n# Name                    Version                   Build  Channel\r\nasn1crypto                0.24.0                   py27_0    defaults\r\nca-certificates           2018.03.07                    0    defaults\r\ncertifi                   2018.4.16                py27_0    defaults\r\ncffi                      1.11.4           py27h9745a5d_0    defaults\r\nchardet                   3.0.4            py27hfa10054_1    defaults\r\nconda                     4.5.1                    py27_0    defaults\r\nconda-env                 2.6.0                h36134e3_1    defaults\r\ncryptography              2.1.4            py27h6697b16_0    defaults\r\nenum34                    1.1.6            py27h99a27e9_1    defaults\r\nfutures                   3.2.0            py27h7b459c0_0    defaults\r\nidna                      2.6              py27h5722d68_1    defaults\r\nipaddress                 1.0.19                   py27_0    defaults\r\nlibedit                   3.1                  heed3624_0    defaults\r\nlibffi                    3.2.1                hd88cf55_4    defaults\r\nlibgcc-ng                 7.2.0                h7cc24e2_2    defaults\r\nlibstdcxx-ng              7.2.0                h7a57d05_2    defaults\r\nncurses                   6.0                  h9df7e31_2    defaults\r\nopenssl                   1.0.2o               h20670df_0    defaults\r\npip                       9.0.1            py27ha730c48_4    defaults\r\npycosat                   0.6.3            py27ha4109ae_0    defaults\r\npycparser                 2.18             py27hefa08c5_1    defaults\r\npyopenssl                 17.5.0           py27hcee3be0_0    defaults\r\npysocks                   1.6.7            py27he2db6d2_1    defaults\r\npython                    2.7.14              h1571d57_29    defaults\r\nreadline                  7.0                  ha6073c6_4    defaults\r\nrequests                  2.18.4           py27hc5b0589_1    defaults\r\nruamel_yaml               0.15.35          py27h14c3975_1    defaults\r\nsetuptools                38.4.0                   py27_0    defaults\r\nsix                       1.11.0           py27h5f960f1_1    defaults\r\nsqlite                    3.22.0               h1bed415_0    defaults\r\ntk                        8.6.7                hc745277_3    defaults\r\nurllib3                   1.22             py27ha55213b_0    defaults\r\nwheel                     0.30.0           py27h2bc6bb2_1    defaults\r\nyaml                      0.1.7                had09818_2    defaults\r\nzlib                      1.2.11               ha838bed_2    defaults\r\n```\r\n</p></details>\r\n"},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/518249535","html_url":"https://github.com/conda/conda/issues/7227#issuecomment-518249535","issue_url":"https://api.github.com/repos/conda/conda/issues/7227","id":518249535,"node_id":"MDEyOklzc3VlQ29tbWVudDUxODI0OTUzNQ==","user":{"login":"daveuu","id":2660660,"node_id":"MDQ6VXNlcjI2NjA2NjA=","avatar_url":"https://avatars0.githubusercontent.com/u/2660660?v=4","gravatar_id":"","url":"https://api.github.com/users/daveuu","html_url":"https://github.com/daveuu","followers_url":"https://api.github.com/users/daveuu/followers","following_url":"https://api.github.com/users/daveuu/following{/other_user}","gists_url":"https://api.github.com/users/daveuu/gists{/gist_id}","starred_url":"https://api.github.com/users/daveuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveuu/subscriptions","organizations_url":"https://api.github.com/users/daveuu/orgs","repos_url":"https://api.github.com/users/daveuu/repos","events_url":"https://api.github.com/users/daveuu/events{/privacy}","received_events_url":"https://api.github.com/users/daveuu/received_events","type":"User","site_admin":false},"created_at":"2019-08-05T14:08:33Z","updated_at":"2019-08-05T14:08:33Z","author_association":"NONE","body":"I attempted to do exactly the same thing and encountered the same problem, so I second this request. Sharing a pkg cache and environments seems useful to me.\r\n\r\nProbably a duplicate of this #6953\r\n\r\nMy `conda info`:\r\n\r\n```\r\n    active environment : None\r\n            shell level : 0\r\n...\r\n          conda version : 4.6.14\r\n    conda-build version : not installed\r\n         python version : 3.7.3.final.0\r\n       base environment : /opt/conda  (read only)\r\n...\r\n          package cache : /mnt/conda/pkgs\r\n       envs directories : /mnt/conda/envs\r\n                          /home/.../.conda/envs\r\n                          /opt/conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.6.14 requests/2.21.0 CPython/3.7.3 Linux/4.15.0-55-generic ubuntu/18.04.2 glibc/2.27\r\n                UID:GID : 876090092:876090092\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n"}}
other: {"actor":{"display_login":"daveuu"}}