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.

verdaccio folder permission issue on ubuntu

See original GitHub issue

Describe 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:

  1. install Ubuntu 18.04.1 and docker version 18.09.1
  2. Pull and run verdaccio image
  3. 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aimarjscommented, Jan 21, 2019

Ok, let’s close it. I fixed v3 within my own fork for now and I’ll wait for the v4 release.

Thank you!

0reactions
lock[bot]commented, Jun 29, 2019

🤖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! 💘

Read more comments on GitHub >

github_iconTop 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 >

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