Score:0

Setting user permissions on a directory located inside of a root directory (spack package manager)

us flag

I am currently trying to use a package manager called spack. I am using the following commands to clone it into a directory that otherwise only has r+w+x permissions for root users and r permissions for the current user:

sudo git clone https://github.com/spack/spack.git
sudo chgrp -R my_user_group spack
sudo chmod -R +rwx spack

When I try to install a package, I get the error message

==> Error: [Errno 13] Permission denied: '/my/root/directory/spack/opt'

The spack/opt directory is usually created at runtime when it doesn't exist yet. Right now, I get a Permission denied error while trying to access a nonexistent folder, which means that the create command didn't go through. I thought that setting r+w+x permissions for that particular group like this was enough to do that, am I missing a step in order to be able to freely use this directory as a user from my_user_group?

David avatar
cn flag
Is this an Ubuntu system and if so what version?
Score:0
us flag

Setting permissions to sudo chmod -R 777 solved the issue in this case.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.