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

Directory/file ownership (root/laradock) #753

Closed
kp77 opened this issue Apr 5, 2017 · 7 comments
Closed

Directory/file ownership (root/laradock) #753

kp77 opened this issue Apr 5, 2017 · 7 comments

Comments

@kp77
Copy link

kp77 commented Apr 5, 2017

I'm trying to change directory/file ownership to laradock user but chown doesn't do anything. Everything is owned by root in /var/www and if I create something new as laradock user it will be owned by root.

I have problems with npm install because of this.

I think this is a similar issue: #373

@Mvzundert
Copy link
Contributor

@Mahmoudz There's also something going on with NFS sharing on OSX.

@kp77
Copy link
Author

kp77 commented Apr 6, 2017

I'd like to add, that while the original issue still exists (all files are owned by root and it can't be changed via chown), it seems that I can use the www directory logged in as laradock without problems.

I'm logged in as laradock, but I have write access to the files/directories owned by root, although I should not have write access according to the permission settings.

@MikSDigital
Copy link

MikSDigital commented Apr 16, 2017

Hi!

I am using Laradock under Ubuntu 16.04 with Docker version 17.03.1-ce, build c6d412e.

And have also user/permissions problem:

m@homePC:~/docker/laradock-testing/my_project_test$ ls -la
total 136
drwxr-xr-x 9 root root 4096 apr 16 19:34 .
drwxrwxr-x 14 m m 4096 apr 16 19:34 ..
drwxr-xr-x 4 root root 4096 apr 16 19:34 app
drwxr-xr-x 2 root root 4096 apr 16 19:37 bin
-rw-r--r-- 1 root root 2379 apr 16 19:34 composer.json
-rw-r--r-- 1 root root 78082 apr 16 19:34 composer.lock
-rw-r--r-- 1 root root 248 apr 16 19:34 .gitignore
-rw-r--r-- 1 root root 1065 apr 16 19:34 LICENSE
-rw-r--r-- 1 root root 978 apr 16 19:34 phpunit.xml.dist
-rw-r--r-- 1 root root 2300 apr 16 19:34 README.md
drwxr-xr-x 3 root root 4096 apr 16 19:34 src
drwxr-xr-x 3 root root 4096 apr 16 19:34 tests
drwxr-xr-x 5 root root 4096 apr 16 19:37 var
drwxr-xr-x 15 root root 4096 apr 16 19:37 vendor
drwxr-xr-x 3 root root 4096 apr 16 19:37 web

@gabriellucius
Copy link

Same problem here, and if I run chmod the with laradock or root user anything changes :(

@morales2k
Copy link

I'm running windows and this issue cropped up as well.

Running chmod on anything returned no errors, but no expected results either. Just like @gabriellucius described.

I ssh'd into the workspace container using the laradock user, and ran composer install on my project. It did not error out on permissions, it created the vendor folder, and it installed my dependencies.

Yes, with laradock user, and permissions being root:root on everything as described by @MikSDigital.

I don't blame you if you don't believe what I am describing here, but it is as I'm saying it. Since it is working, I'm not going to mess with it any longer... but it sure rubs me in all the wrong ways imaginable to see root on the group and user permissions, and then be able to write on those folders with a laradock user that, according to Dockerfile-72 (I'm using php 7.2) belongs to the laradock:laradock permission set...

My mind is still blown... but then I remember this is Windows and it kinda makes sense...
Kind of...

@stale
Copy link

stale bot commented Feb 2, 2020

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 Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 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 Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants