verdaccio folder permission issue on ubuntu
See original GitHub issueDescribe the bug If running verdaccio image on Ubuntu 18.04 host, docker container doesn’t set proper recursive permissions for /verdaccio folder.
To Reproduce Steps to reproduce the behavior:
- install Ubuntu 18.04.1 and docker version 18.09.1
 - Pull and run verdaccio image
 - docker exec into to image and check ls -la for /verdaccio
 
Expected behavior verdaccio user permissions should be set recursively
Screenshots If applicable, add screenshots to help explain your problem.
Docker || Kubernetes (please complete the following information):
- Docker verdaccio tag: verdaccio/verdaccio:3.10.1
 - Docker commands docker run verdaccio/verdaccio:latest
 - Docker Version 18.04.1
 
Additional context Problem is that in ubuntu user management is different. Normally you do not want to work on root but under user who has sudo permissions.
Recommended fix Just add su root before addgroup
RUN **su root** && addgroup -S verdaccio && adduser -S -G verdaccio verdaccio && \
    chown -R verdaccio:verdaccio "$APPDIR" && \
    chown -R verdaccio:verdaccio /verdaccio
I don’t mind to do pull request and implement the fix
Issue Analytics
- State:
 - Created 5 years ago
 - Comments:6 (3 by maintainers)
 
Top Results From Across the Web
Configuration File - Verdaccio
WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301.
Read more >Server Configuration - Verdaccio
You will need root (or sudo) permissions for the following steps. Running as a separate user. First create a Verdaccio user: $ sudo...
Read more >Docker - Verdaccio
Copying the final folder into the final image and applying permissions so verdaccio can find the folders (verdaccio uses custom user $ ...
Read more >Environment Variables | Verdaccio
Verdaccio provides a set of environment variables to modify either permissions, port or http protocol. Here the complete list:
Read more >How to fix the "Missing write access" error when using npm
sudo means we are running this command as root , the system super user. This is because we don't have permission to write...
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 Free
Top 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

Ok, let’s close it. I fixed v3 within my own fork for now and I’ll wait for the v4 release.
Thank you!
🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. We lock tickets after 90 days with the idea to encourage you to open a ticket with new fresh data and to provide you better feedback 🤝and better visibility 👀. If you consider, can attach this ticket 📨to the new one as a reference for better context. Thanks for being a part of the Verdaccio community! 💘