Top "Chown" questions

chown is a command is used to change the owner and/or group membership of a file or set of files.

MongoDB only works when run as root on Ubuntu - data directory issue

I installed MongoDB with the official packages (mongodb-stable), and followed the Quickstart guide which includes: By default MongoDB will store …

ubuntu permissions mongodb chown
Apache/CentOS 7: /var/www/html/ owned by root but created files owned by apache - how do I resolve this?

I have a fresh, unmodified install of Apache on CentOS 7. I notice that when I look at the folder permissions …

php apache chown centos7 chgrp
Dockerfile "RUN chmod" not taking effect

Everything else takes effect but permissions are not changing, am I missing something? FROM joomla:3.9-php7.2-apache RUN apt-get update \ &…

docker permissions dockerfile file-permissions chown
MySQL LOAD_FILE returns NULL

I want to get SQL LOAD_FILE function to work and have read every single question/answer + documentation about this, …

mysql sql chmod chown mysql-loadfile
Change owner of the root folder and subfolders (Ubuntu 13.04)

I accidentally set owner of root folder (/) and all subfolders to one user by command $ sudo chown -R 'userName' /* Now …

linux unix ubuntu sudo chown
UNIX How to copy entire directory (subdirectories and files) from one location to another and retain permissions

I just copied an entire directory structure from one location on my server to another: cp -r /home/abc/public_…

chmod cp chown chgrp
Change the ownership (chown) from 'root' to 'apache'

System OS: CentOS7.0-64 LAMP for VSI Problem: I am attempting to change the ownership of two virtual directories from …

virtualhost centos7 chown
github error: insufficient permission for adding an object to repository database

I used to be able to do, from my App folder: git add . git commit -m "commit details" git push …

git github chown
chown docker volumes on host (possibly through docker-compose)

I have the following example version: '2' services: proxy: container_name: proxy hostname: proxy image: nginx ports: - 80:80 - 443:443 …

docker docker-compose chown docker-volume
Change owner and group in C?

I want to change owner and group of a file in C. I google it, but if find only some …

c linux chown