Permission denied at /tmp/caxa - Multi user problem in linux
See original GitHub issueHi,
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:
- Created a year ago
- Comments:15 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SrZorro Thank you very much for your work. I’ll get to this soon…
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.