Skip to content

Conversation

@andriichuk
Copy link
Contributor

@andriichuk andriichuk commented Apr 2, 2021

Resolve issue with vendor folder permissions for existing application. Currently the vendor folder is created under the root user. Fixed it to install under the current system user.

Preconditions:

  • OS: Ubuntu 18.04.5 LTS
  • Current system user: non root user

Steps:

  1. Run composer install for existing project:
    docker run --rm \
        -v $(pwd):/opt \
        -w /opt \
        laravelsail/php80-composer:latest \
        composer install
    
  2. Check ./vendor folder permission:
    ls -l ./
    
    drwxr-xr-x 52 root  root    4096 apr  2 23:25 vendor/
    
  • Expected result: ./vendor folder has current system user and group
  • Actual result: ./vendor folder has root user and group

Resolve issue with vendor folder permissions for existing application. Currently the vendor folder is created under the root user. Fixed it to install under the current system user
@taylorotwell
Copy link
Member

Steps to recreate?

@andriichuk
Copy link
Contributor Author

Steps to recreate?

@taylorotwell Hi! Thanx for quick response, I've added steps.

@taylorotwell taylorotwell merged commit 0fb9e12 into laravel:8.x Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants