Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I've no idea why use 82 as uid for www-data #2536

Closed
mcwz opened this issue Mar 14, 2020 · 5 comments
Closed

I've no idea why use 82 as uid for www-data #2536

mcwz opened this issue Mar 14, 2020 · 5 comments
Labels

Comments

@mcwz
Copy link

mcwz commented Mar 14, 2020

adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1

But in nginx container , /var/www is belong to uid 1000.
When I open app.test ,it shows 404 .

@waiyan13
Copy link

This. I was racking my brain for hours why my source folder is owned by 1000.

I wanted to use separate app.conf instead of default.conf inside nginx/sites/. If I used this way, I can't access the index.html I put inside the source folder. Putting it inside public folder didn't help either.

The only way this works is to use default.conf and add your source folder explicitly. I want to know the reason why I can't use custom site configuration.

@ernst77
Copy link

ernst77 commented Apr 10, 2020

I am having alot of issues with UID's and permissions... For example log file get's set by different user each time some containers run as a root some of them as laradock user... And not all of the containers can write logs.

@kenng
Copy link

kenng commented Jun 9, 2020

@mcwz @ErnestStaug

spent some time to check on this, for Nginx with php-fpm, it's the php-fpm container that responsible for creating the file in the mounted volume, thus inherited the www-data user id and gid of it.

Therefore you should check in php-fpm container the user www-data and make sure it has access to the mounted volume or permission denied will happen. For our case, new file created initially was set with 1000:33, which resulted no permission to write (since allowed group id is 82 on mounted volume)

try to add the group 82 to the www-data user in php-fpm container.

@stale
Copy link

stale bot commented Sep 7, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Sep 7, 2020
@stale
Copy link

stale bot commented Sep 28, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants