Article 6M9D9 Multiple user permissions on a directory

Multiple user permissions on a directory

by
Jason.nix
from LinuxQuestions.org on (#6M9D9)
Hello,
I changed the docker storage to another location:
Code:{
"data-root": "/mnt/newlocation/"
}The root user has access to this directory:
Code:# ls -l /mnt/newlocation/
total 20
drwxr-xr-x 5 root root 4096 Apr 22 09:22 containers
drwx------ 2 root root 16384 Apr 9 16:50 lost+foundI have installed GitLab Runner and want it to have full access to this directory. I did the following command:
Code:# chown -R gitlab-runner /mnt/newlocation/The permissions were changed as follows:
Code:# ls -l /mnt/newlocation/
total 20
drwxr-xr-x 5 gitlab-runner root 4096 Apr 22 09:22 containers
drwx------ 2 gitlab-runner root 16384 Apr 9 16:50 lost+foundThe GitLab Runner problem is fixed, but what problems might this cause for Docker and others? Can I make both the root user and the gitlab-runner user have full access to this directory?

I found solutions on the internet that were about creating a group, then adding users to that group, and finally giving that group full permission for that directory. Is this OK?

Thank you.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments