file-permissions

Permissions-error using bash-script to install a library in R

為{幸葍}努か 提交于 2021-01-28 22:45:05
问题 I am running a software called CNV-Seq in a Bash script but, I do not have permission to run the following command: R CMD INSTALL cnv/ The error is * installing to library '/share/apps/r/3.2.2/intel/lib64/R/library' Error: ERROR: no permission to install to directory '/share/apps/r/3.2.2/intel/lib64/R/library' How can I solve this problem without gaining permission. 回答1: One approach is creating the bash script that executes R script. So, the R script will contain: install.packages("package

File ownership after docker cp

痴心易碎 提交于 2021-01-21 06:43:04
问题 How can I control which user owns the files I copy in and out of a container? The docker cp command says this about file ownership: The cp command behaves like the Unix cp -a command in that directories are copied recursively with permissions preserved if possible. Ownership is set to the user and primary group at the destination. For example, files copied to a container are created with UID:GID of the root user. Files copied to the local machine are created with the UID:GID of the user which

How to make `getfacl` run with certain order?

你离开我真会死。 提交于 2020-12-15 06:09:27
问题 I use getfacl -RP ../www > permission_backup to store the permission and Beyond Compare to compare two permission_backup ,if permission has any change,I will run setfacl --restore . I found a problem,I run getfacl -RP ../www > permission_backup to the same folder twice,items in permission_backup may have different order,then Beyond Compare will tell me there's big different. For example: One permission_backup is as below: # file: ../www/info/2013-09-05/16.html # owner: apache # group: apache

Docker persisted volum has no permissions (Apache Solr)

旧时模样 提交于 2020-12-13 09:31:11
问题 My docker-compose.yml : solr: image: solr:8.6.2 container_name: myproject-solr ports: - "8983:8983" volumes: - ./data/solr:/var/solr/data networks: static-network: ipv4_address: 172.20.1.42 After bringing up the docker with docker-compose up -d --build , the solr container is down and the log ( docker logs myproject-solr ) shows this: Copying solr.xml cp: cannot create regular file '/var/solr/data/solr.xml': Permission denied I've noticed that if I give full permissions on my machine to the

Python Permission Error when reading

筅森魡賤 提交于 2020-12-10 07:59:30
问题 import os import rarfile file = input("Password List Directory: ") rarFile = input("Rar File: ") passwordList = open(os.path.dirname(file+'.txt'),"r") with this code I am getting the error: Traceback (most recent call last): File "C:\Users\Nick L\Desktop\Programming\PythonProgramming\RarCracker.py", line 7, in <module> passwordList = open(os.path.dirname(file+'.txt'),"r") PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Nick L\\Desktop' This is weird because I have full permission

Permission denied when opening or creating files with PHP

微笑、不失礼 提交于 2020-11-28 06:47:40
问题 I can't create files with php, because the file dosent got permission for that. I get this error: Warning: fopen(test.txt): failed to open stream: Permission denied in /web/com/example.com/index.php on line 20 Warning: fwrite() expects parameter 1 to be resource, boolean given in /web/com/example.com/index.php on line 21 Warning: fclose() expects parameter 1 to be resource, boolean given in /web/com/example.com/index.php on line 22 This is the code I was using: <?php $file = fopen("test.txt",

Permission denied when opening or creating files with PHP

夙愿已清 提交于 2020-11-28 06:39:52
问题 I can't create files with php, because the file dosent got permission for that. I get this error: Warning: fopen(test.txt): failed to open stream: Permission denied in /web/com/example.com/index.php on line 20 Warning: fwrite() expects parameter 1 to be resource, boolean given in /web/com/example.com/index.php on line 21 Warning: fclose() expects parameter 1 to be resource, boolean given in /web/com/example.com/index.php on line 22 This is the code I was using: <?php $file = fopen("test.txt",