My website, on the docker (run Windows10).
I have a [public] directory and the website’s user put an image into the this directory.
I use the windows terminal >>> Ubuntu
$ ls -l
and Iget this response :
drwxrwxrwx 1 beginnerjdocker beginnerjdocker 4096 Apr 25 11:22 public
I think [beginnerjdocker] user must add into the [www-data] group
I tried two way but it doesn’t work
adduser beginnerjdocker www-data
adduser: Only root may add a user or group to the system.
usermod -aG www-data beginnerjdocker
usermod: Permission denied.|
usermod: cannot lock /etc/passwd; try again later.
Could you help me : how I can do it ?