Questions tagged [chown]

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

374 questions
5
votes
1 answer

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 'root' to 'apache', so that Apache can read and write data. I am using the following commands but to no avail. chown -R…
Christopher lee
  • 69
  • 2
  • 2
  • 4
5
votes
1 answer

Is www-data user the same as apache user on Centos system

I'm using Centos system. I see the directories/files owned by www-data user. I'd expect them to be owned by apache process. Does www-data translate as apache for ownership?
cea
  • 285
  • 3
  • 11
5
votes
3 answers

Command /usr/sbin/chown failed with exit code 1

I know this has been covered quite a lot, but I've been googling and trying things for almost 2 days straight now with no luck from the current solutions. I'm using XCode 4.6.2 to create a PhoneGap application, which currently builds to a device and…
David Welsh
  • 119
  • 4
  • 10
4
votes
2 answers

Is there a way to diff chown/chmod between two servers' directories?

Platform: CentOS 5.6 x86_64 I have a production server and a development server. I want to debug file ownership and permissions across a large directory structure, which is almost identical, give or take a few ephemeral files in temporary…
peterRepeater
  • 143
  • 4
  • 12
4
votes
2 answers

MySQL local owner and permissions

I asked this question on the MySQL forums and got no answer, so I'll try here. I recently successfully installed the 64 bit version of mysql-5.5.8 on a MacBook Pro in the /usr/local directory. To address a completely unrelated software (RVM…
user209835
  • 161
  • 2
  • 11
4
votes
1 answer

How to give docker container write/chmod permissions on mapped volume?

I have a synology NAS which has docker support and wanted to run some docker containers (I'm pretty new to Docker) on it. For example pocketmine-pm (but I believe I have the write issue also with other containers). I created a volume on the host and…
Patric
  • 2,789
  • 9
  • 33
  • 60
4
votes
3 answers

How to change permission of vmware's shared folder

I'm using ubuntu 16.04 on vmware player. The shared folder is enabled and is visible on /mnt/fghs. But, the owner(root) can't be changed by chown. How to change it? Please, advice me. Additionally, some person said the owner could be changed after…
Jang
  • 150
  • 1
  • 2
  • 10
4
votes
3 answers

Changing owner and group of newly created directories using PHP script

Dedicated Linux server running debain LAMP. I run a PHP script (using a browser) which creates a directory (and various sub directories) in a folder on the same server for subsequent shared use using Dropbox. The directories are created in…
Wonder Works
  • 73
  • 1
  • 1
  • 6
4
votes
1 answer

Does PHP ignore /etc/group settings?

First of all, I'm sorry about my bad English, I'm not a native speaker. I'm using PHP with FCGI, so each one of my virtual hosts run their php scripts as different users. I needed to share a php class between two of the virtualhosts (user1 and…
pagliuca
  • 1,129
  • 13
  • 19
3
votes
1 answer

Mac OSX Apache Write Privileges

So here is my problem. Its started when I discovered that I couldn't install plugins or themes in WordPress from the admin panel, it just kept asking for my connection info ( http://cl.ly/DLdH/o ). I found a blog post which suggested changing the…
Taha
  • 381
  • 1
  • 5
  • 12
3
votes
0 answers

Can not access folder after chown with podman unshare

I have a rootless setup (podman is running in user space and the container I'm starting is also rootless. Now I wan't to mount a volume. To do so I'm using podman unshare chown but after executing this, I can not access the folder anymore The…
PascalTurbo
  • 2,189
  • 3
  • 24
  • 41
3
votes
1 answer

Docker EACCES permission denied mkdir

My friend gave me a project with a dockerfile which seems to work just fine for him but I get a permission error. FROM node:alpine RUN mkdir -p /usr/src/node-app && chown -R node:node /usr/src/node-app WORKDIR /usr/src/node-app COPY package.json…
azium
  • 20,056
  • 7
  • 57
  • 79
3
votes
3 answers

MongoDB on macOS: How do I resolve chown: data/db: No such file or directory

I installed MongoDB via Homebrew and created the /data/db directory. When I run sudo chown -R id -un /data/db. I get this error: chown: data/db: No such file or directory I've tried all solutions I can find online and I see that the directory…
3
votes
2 answers

Ansible chown operation not permitted for non-root user

I have the following in an Ansible playbook: - name: Create certificates directory file: dest: "{{ '~/wireguard/certs' | expanduser }}" state: directory owner: "{{ ansible_user_id }}" group: "{{ ansible_user_id }}" mode: 0700 …
akrantz01
  • 628
  • 1
  • 9
  • 19
3
votes
1 answer

chown returns invalid user in Dockerfile

Can someone help me sort the below issue out? I am trying to spin up an ubuntu image with the below Dockerfile FROM ubuntu:16.04 RUN apt-get -q -y update && \ apt-get -q -y upgrade && \ apt-get -q -y install ssh RUN groupadd remote_user RUN…
Foudel
  • 267
  • 3
  • 6
  • 13