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.

adduser command Error :'verdaccio/conf/htpasswd' permission denied

See original GitHub issue

I pull this image and run it . after i run this image , i can access to the page via a browser. But I can’t adduser to the command line I gave the file all permissions and gave a 100:101 grouping But the problem still exists


my docker run command :

docker run -it --rm --name verdaccio \
  -p 4873:4873 \
  -v /usr/verdaccio/conf:/verdaccio/conf \
  -v /usr/verdaccio/storage:/verdaccio/storage \
  -v /usr/verdaccio/plugins:/verdaccio/plugins \
  verdaccio/verdaccio

When I use the adduser command, I enter the email address and the command line interface is stuck. I used the docker logs verdaccio command to view the logs and found the following error message:

  Trace--- the user yangkesi could not be added. Error: { message:
    'EACCES: permission denied, open \'/verdaccio/conf/htpasswd\'',
   Name: 'Error',
   Stack:
    'Error: EACCES: permission denied, open \'/verdaccio/conf/htpasswd\'',
   Code: 'EACCES',
   Signal: undefined }
  Error--- unexpected error: EACCES: permission denied, open '/verdaccio/conf/htpasswd'
Error: EACCES: permission denied, open '/verdaccio/conf/htpasswd'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
savokisscommented, Oct 14, 2019

This may help:

sudo chown 10001:65533 htpasswd
1reaction
savokisscommented, Oct 28, 2019

@ishowman host machine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why useradd shows Permission denied error
The command useradd needs some special privilege to modify the system settings. Hence, you get a permission denied when using it as a...
Read more >
Problem with adduser, permission denied (publickey).
After creating a user (logged in as root) and trying to log in, I get “permission denied (publickey).”
Read more >
Error when creating a new user - home directory - Ask Ubuntu
The command sudo adduser bob returned a Couldn't create home directory `/home/bob': Permission denied error message because you are already ...
Read more >
Permission Denied on UserAdd command shell script started ...
The mkdir command works as expected. But the useradd command retrieves a 'permission denied' error even if I explicitly decleared in sudoers ...
Read more >
Permission Denied When Creating Directory or Writing a File
Overview If you receive an error telling you that you do not have permissions to create a directory or to write a file...
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