374 questions
0
votes
0
answers
33
views
How do I change permanently change under the specific directory in Linux after I specified permissions with `chown -R user:group .`?
How do I change permanently change under the specific directory in Linux after I specified permissions with chown -R user:group .?
For example, I changed owner and group with chown -R www-data:www-...
0
votes
1
answer
487
views
nginx cannot serve React due to permission denied. www-data cant access frontend/build/
I'm trying to configure nginx so that it can serve both React and Django. Here is my configuration:
server {
listen 80;
server_name 182.20.4.110 mydomain.io;
location = /favicon.ico { ...
0
votes
0
answers
292
views
Git commands not working due to dubious ownership in the repository
I changed my operating system to Linux Mint. In doing that I migrated local git repositories data to an external drive and then moved back the files again into the new OS. Now when I try to perform ...
0
votes
0
answers
45
views
Chown command seems to have broken my computer
So there I was innocently trying to update Homebrew on my Macbook Pro, and I'm a normal-to-experienced computer user, not afraid of the ol' command line but I'm not a super under-the-hood wiz kid ...
1
vote
1
answer
202
views
Shopware 6: Docker exec chown fails in Git Bash script with "No such file or directory"
I have a Git Bash script that runs some Docker commands to set up my Shopware container. One of the commands uses docker exec to run sudo chown on a path inside the container:
docker exec -it $...
0
votes
1
answer
109
views
auto-mounting your extra drive in linux and facing "fatal: detected dubious ownership in repository at '/home/my-name/folder/sub-folder/sub-folder1'"
I moved to Linux from Windows. And auto-mounted my extra drive[hdd] to a directory I created in Home.
After hitting git status or any git command I get this message:
fatal: detected dubious ownership ...
1
vote
1
answer
263
views
CMake, user running "sudo install", How do I now change the file owner to original user?
Wrote a CMakeList.txt file. At installation I am copying configuration files into users home directly .application hidden folder.
install(FILES etc/config.tsv DESTINATION ${USER_HIDDEN_DIR} ...
0
votes
0
answers
66
views
docker-compose fails to change ownership on ubuntu 22.04.3 on VMware Workstation
VMware Workstation: 16.2.5/17.0.2
Ubuntu: 20.04.6/22.04.3
Dockerfile:
FROM debian:12.1-slim
WORKDIR /root
RUN groupadd -f ernie-1001 -g 1001 \
&& groupadd -f ernie-1000 -g 1000 \
&...
0
votes
1
answer
235
views
Сontent of the directory is only partially bonded in Docker Volumes
I have a Node.JS service running in a Docker container that deploys related Docker containers (Docker-outside-of-Docker) through REST.
The actions sequence (inside the NodeJS container):
Create a new ...
2
votes
0
answers
1k
views
Running Airflow in Docker \ chown: changing ownership of '/sources/{logs,dags,plugins}': Invalid argument
When I try to start the Airflow services with docker compose --profile flower up, the following errors occur when starting the airflow-airflow-init-1 container:
chown: changing ownership of '/sources/...
0
votes
0
answers
769
views
Docker COPY --chown ownership sometimes applies to
I have the following Dockerfile
FROM python:3.11
# Create non-root user to run with
ARG USERNAME=bean
ARG USER_UID=999
ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME && useradd ...
7
votes
2
answers
9k
views
FATAL:credentials.cc(127) Check failed: . : Permission denied (13) Trace/breakpoint trap (core dumped) [closed]
My OS specifications are given below:
pegasus@pegasus:~$ uname -r
5.19.0-1007-nvidia-lowlatency
pegasus@pegasus:~$ uname -a
Linux pegasus 5.19.0-1007-nvidia-lowlatency #7-Ubuntu SMP PREEMPT_DYNAMIC ...
0
votes
0
answers
174
views
Set default owner / permission to new files on Linux
I have different .jar files that create a directory with files inside, the problem is that this directory and these files are created with the wrong owner (root) and I'd like that by default the owner ...
-2
votes
2
answers
1k
views
Change owner and group of all files and directories [closed]
I tried changing the owner and group of all files and directories Vincent and staff respectively in my terminal but its not working.
I tried using
chown -R Vincent:staff*...
0
votes
1
answer
107
views
Script to check if files in $HOME are owned by $USER and -if not- change them
Need to create a script at startup that checks if files in $HOME are owned by $USER and -if not- change them.
Would start with
find $HOME ! -user $USER
and later
chown -R $USER:$USER $HOME
but can't ...
0
votes
0
answers
48
views
Accidently ran `sudo chown root@root -R /.` instead of `sudo chown root@root -R ./`
I wanted to change tho permission of a file structure and accidently ran
sudo chown root@root -R /.
instead of
sudo chown root@root -R ./
is there anyway i can undo that?
I don't have a backup of my ...
0
votes
1
answer
1k
views
Limactl: How to fix chown problems?
I tried running this docker compose file
https://docs.sorry-cypress.dev/guide/dashboard-and-api
I used the docker template
limactl start --name=docker template://docker
With the following mounts ...
0
votes
0
answers
849
views
Can I access an Azure file share with non root user?
In this url https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files, it says that:
Azure file share volume mount requires the Linux container run as root .
...
1
vote
1
answer
3k
views
Golang Change permission "os.chmod" and "os.chowm" recursively
I am trying to change ownership and permission of files and directory using os.Chmod and os.Chown. How can I do this recursively. For Illustration linux equivalent of this chmod -R and chown -R
0
votes
0
answers
342
views
Docker chown folder on volume binded with magento
I am actually blocked because when I add this command in my Dockerfile
"RUN ln -s /etc/nginx/sites-available/local.magento /etc/nginx/sites-enabled" to activate my virtual host, I have ...
-1
votes
2
answers
657
views
How do I change owner and group owner of files and directories?
I want to change the owner and the group owner for all the files in the current working directories with a single line command. I don't want to have double line as follows;
sudo chown you <...
2
votes
1
answer
865
views
chown and chmod for folder only (recursively) on hdfs
I want to chown and chmod on hdfs (recursively) but only for the folder.
In Linux we can do it using find
https://superuser.com/questions/91935/how-to-recursively-chmod-all-directories-except-files
...
0
votes
0
answers
246
views
Unable to Change Permission for File on External Disc on Mac
Problem
I have a corrupt file on a network NAS:
/bad/bad_file.file
Which I want to remove but I cannot. The file name is extremely long, so this may be part of the problem.
Finder
The file has the ...
0
votes
0
answers
173
views
How do I change the permissions of a file created in a script without using sudo?
I've got the following docker-compose file that creates a Cassandra cluster with SSL enabled. I have to mount the keystore and truststore files with a volume.
version: "3.3"
services:
...
1
vote
1
answer
1k
views
Docker permissions with base image for non-root user
I have a base image that does a couple of installments with root permission, then create a new user, change owner of the WORKDIR then switch to the user. The child image will inherit this image with ...
4
votes
0
answers
3k
views
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 ...
0
votes
1
answer
1k
views
When we use -R with chmod or chown will it affect the files which might get added to the directories in the future?
So i know that whenever we use
chmod -R xxx directory_name
chown -R user:group directory_name
it affects all the files which are currently there in the directory.
But my question is, will the ...
0
votes
1
answer
3k
views
Unix command to exclude a particular directory and its contents using chown, while permission to other directories are applied
I'm using the below command to change the ownership (using chown) of sets directories and files present under a /opt/var and trying to exclude .snapshot directory and its contents.
find /opt/var/ ! -...
5
votes
1
answer
20k
views
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/...
0
votes
0
answers
62
views
Problems with readlink and set uid
I'm having trouble getting setuid to work as hoped (chmod 3755).
I'm trying to implement, using C language, my own version of psgrep (or pgrep) for a very specific need. In order to accomplish this, ...
0
votes
0
answers
299
views
Logstash is unable to access different user directories
I'm having trouble with logstash log gathering.
For gathering logs from Oracle databases, I utilized logstash.
Because the directory owner and user are oracle, and I can alter the user on oracle ...
1
vote
1
answer
101
views
Using conda environments after copying entire home dir
I had miniconda3 installed in ~/miniconda. I had to reinstall my OS, so I had the entire home directory backed up. After that, I copied (most) dirs back into the newly created home dir. As well as ....
1
vote
2
answers
2k
views
PHP Deployer failing on line without errors
I have a PHP Deployer task to recursively change file owner of everything in the deploy path:
task('set_owner', function () {
run("chown -R someuser:www-data {{deploy_path}}");
}...
-1
votes
1
answer
325
views
How to get user from init bash script Linux(before user session created)
At Debian im trying to change specific directory ownership after every reboot. But in my case it doesnt work, because user always set as root at reboot time.
When i try this in terminal it works well (...
1
vote
3
answers
1k
views
How to use chown command in PHP?
I want the user to be able to read and edit files in the test folder, these files are always created by a software with read-only properties.
I can't use the chown command manually, so I need a chown ...
0
votes
0
answers
232
views
Can't change ownership of '/dev/gpiomem' in a docker container in RPi
I'm trying to run a simple docker container with a python base image to control the LEDs on my RPi4.
The Dockerfile compiles fine and I'm running it as follows:
docker run --rm -ti --privileged --...
0
votes
0
answers
1k
views
Change file ownership for external persistent volume of MySQL Container
This is a tricky one.
I have the official MySQL Docker container with a persistent volume.
I realized that the performance was quite bad, so I stopped the container, moved the files on the host system ...
0
votes
1
answer
381
views
Give Python root permissions in AWS SageMaker Jupyter Labs
I'm using this Notebook, where section Apply DocumentClassifier is altered as below.
Jupyter Labs, kernel: conda_mxnet_latest_p37.
chown command outputting many: Operation not permitted and ...
1
vote
0
answers
783
views
Fedora: Changing ownership of ‘/usr/bin/’: Operation not permitted
I tried to install VMware Tools on my Fedora but after I copied the tarball into Desktop directory, I cannot use sudo any more. I tried chown to fix it but it didn't work either. I am new to Fedora ...
3
votes
3
answers
3k
views
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 ...
0
votes
0
answers
96
views
Chown in Dockerfile works sporadically
I already read the discussions about chown and volumes in dockerfile but I could not solve my problem.
My dockerfile:
FROM ubuntu:latest
WORKDIR /tests/
RUN mkdir /tests/logs
RUN mkdir /tests/...
0
votes
1
answer
2k
views
chmod only files in current directory but not subdirectories and main directory
I am trying to write a small bash script where I will change file permissions in batch and I can't figure out how to change permissions only on files in current directory and leave directory it self ...
0
votes
2
answers
1k
views
How to prevent laravel changing folder owner
Now and then we face a destructive issue within a Laravel project:
Storage log file
production.ERROR: Unable to create lockable file: /var/www/html/storage/framework/cache/data/... Please ensure you ...
0
votes
0
answers
4k
views
Docker MongoDB -> chown: changing ownership of *: Operation not permitted
I know this is a duplicate, but I tried every solution and there is no solution that works.
Informations:
Docker-Compose 3.9
MacOS Big Sur 11.5
My Docker-compose.yml
version: '3.9'
services:
...
0
votes
0
answers
705
views
Dockerfile chown is being overwritten
I am installing newrelic php agent in a customer dockerfile executing nginx and php-fpm.
The dwefault user and group running are www-data
I am creating the logs dir for newrelic and chowning to www-...
1
vote
0
answers
869
views
unable to chown files or directories from cifs/smb mount
Looking at several resources I have tried a variety of unsuccessful mount commands to try to be able to chown on a mounted smb/cifs share. My current iteration looks like this
sudo mount -t cifs //192....
0
votes
1
answer
261
views
Folder write permission on a symlink (Linux/CentOS)
I am having issues with writing to the target folder of a symlink. The files can be read without any issues, but as soon as I try to upload something to the target folder I get a write permission ...
0
votes
2
answers
573
views
chmod/chown always writing updates even if not required
Whenever I do a "zfs diff" on certain zfs file systems, the output is cluttered by "modified" user files that get "changed" by running chmod over them (in a cron, to ...
1
vote
1
answer
198
views
How to get the group of a folder with Python on a Linux?
I would like to get group of directory. I tried answers from this question, but neither work for me.
If I list file trough terminal I get correct group gpio.
$ ls -l /sys/class/gpio/
total 0
--w--w----...
0
votes
2
answers
443
views
chown failed during docker container start up, when trying to change a config file mounted from host
I have a simple question regarding to docker. I am trying to run a openmicroscopy/apacheds container in a linux host using root. I have my own config.ldif file, and mapping into the container's ...