question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied at /tmp/caxa - Multi user problem in linux

See original GitHub issue

Hi, I just got this error when my CI tried to execute my binary: 2022/04/13 09:12:57 caxa stub: Failed to create the lock directory: mkdir /tmp/caxa/locks/myprogram/7qsvoyerli: permission denied

When I was trying my binary without CI, I used myuser, so caxa created a /tmp/caxa folder with drwxr-xr-x 4 myuser myuser permissions.

But when the CI user wanted to create the lock directory, it failed because the permissions of the caixa directory are not open enough for ciuser.

As a workaround I just chmod 777 -R /tmp/caxa/, but not sure if that could work for all caxa users, maybe some users want to scope the programs per user? Or a shared (with 777) for multi user programs?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
leafaccommented, Jun 20, 2022

@SrZorro Thank you very much for your work. I’ll get to this soon…

1reaction
leafaccommented, May 3, 2022

Excellent work! 😁

I think automating the tests for all aspects of multi-user scenarios may be too cumbersome. The tests may become too brittle (for example, I’d like to avoid involving Docker into the situation), and I think that the benefit may not be that great. So how about we perform some manual testing and call it a day? 🤷

There’s even a precedent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Shell Script Permission Denied Error in Linux
This is the script execution output returned by Linux. It shows the user can't execute the script as there's the “permission denied error”....
Read more >
Permission denied in /tmp - ubuntu - Unix Stack Exchange
To anyone having the same problem in the future, /tmp is a sticky folder by default, meaning only the file owner can modify...
Read more >
How to resolve the "Permission Denied" error in Linux
While using Linux, you may encounter the error, “permission denied”. This error occurs when the user does not have the privileges to make...
Read more >
Remote container multiple users /tmp/docker-compose ...
I use remote ssh & remote container from macOS to Ubuntu Linux ... to /tmp/docker-compose [178015 ms] Error: EACCES: permission denied, ...
Read more >
How To Resolve Permission Denied Error On Ubuntu/Debian?
Linux distributions are constructed in such a secured way that a user cannot make changes unless he/she has administration access. Users who are ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found