Questions tagged [file-permissions]

For questions relating to file read/write permissions, user groups, executable bits etc. Be sure to include a tag for the operating system (Windows or Unix) and tag for operating system version.

For questions relating to file read/write permissions, user groups, executable bits etc.

Related tag:

Filesystem permissions on Wikipedia

3073 questions
1
vote
1 answer

celery user permission denied to /bin/celery

I am trying to daemonize a celery configuration on an aws instance. Following the celery docs, I have: /etc/init.d/celeryd /etc/default/celerybeat I've created both a celery user and celery group and set permissions like so: sudo chown -R…
smth
  • 592
  • 5
  • 14
1
vote
0 answers

Why does setting the "hidden file" attribute on a file make it read only for Python (3.5) on Windows 7

I've noticed that when I set the "hidden file" file attribute to true for a text file such as test.json, then when I open the file in python 3.5 it returns the following error: >>> h = open('test.json','w') Traceback (most recent call last): File…
Eradicatore
  • 1,501
  • 2
  • 20
  • 38
1
vote
1 answer

Make a group owner of an admin disk

Im having a little problem with folders.I have 1 admin and 4 users. All 4 users are in one group. The problem is that admin have access to 2TB disk ( /media/admin/disk ). I would like that entire group can access to admin folders. Because on that…
fx3z
  • 13
  • 4
1
vote
0 answers

.pickle file created myself on raspberry pi using python, 'Permission Denied [Errno 13]' when using Mac OS Sierra to access/alter

I have created a shared file on my local network with the intent of setting up a messaging service. I have tried using chmod 777 to change file and directory permissions but this has not resolved the issue. Using the Pi script to send messages works…
fargonator
  • 11
  • 1
1
vote
1 answer

AWS EC2 - Give folder permission to uploaded files using html form

I am trying to upload a file to AWS EC2 using HTML form. I am creating a folder dynamically and inside which I am uploading the file. But the problem is the folder which gets created has 755 permission and I think because of which my file is not…
user6865700
1
vote
2 answers

php fopen function dies, though I have file permissions set to read and write

I'm following a tutorial on php, and am having difficulty getting this to work. I set the appropriate directory permissions to read and write, but every time I run this, I get the die string. The code is: $ourFileName =…
1
vote
0 answers

Node.js - Writing to file - permission denied

I am using express-winston to write to my log file in /var/log/project/project.log. However, I keep getting Error: EACCES: permission denied, open /var/log/project/project.log. Does anyone know a way around this? Thanks in advance!
Trung Tran
  • 13,141
  • 42
  • 113
  • 200
1
vote
2 answers

How to automatically set permissions of future/new files in Ubuntu?

Currently, I do sudo chown -R ubuntu:ubuntu /home/ubuntu/. But, when I run a Python script which would be creating a folder named testoutput and write files to it, the folder is created with the root permissions, and hence, getting…
Dawny33
  • 10,543
  • 21
  • 82
  • 134
1
vote
1 answer

How can I check file permissions of a Linux file using Haskell?

How can I determine whether a file has write / read / executable permissions for the owner of a file? I've found FileMode http://hackage.haskell.org/package/base-4.10.0.0/docs/System-Posix-Types.html#t:FileMode, but I can't seem to find a simple way…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
1
vote
0 answers

File Permissions only for HTML

What file permission number i should set to a folder/file, such that the file can be accessed only from HTML? I mean, if i have images/background.jpg, HTML can display the result of but if someone try to access…
1
vote
1 answer

New user permission denied for accessing git repository

So I usually create git hook like this (root only): git init --bare nano /home/git-repo/www.example.com.git/hooks//post-receive Paste this #!/bin/sh GIT_WORK_TREE=/home/nginx/domains/www.example.com/public git checkout…
1
vote
2 answers

UnauthorizedAccessException even with FullControl for 'Everyone'

I get this error when trying to delete a file on AppData\... System.UnauthorizedAccessException: Access to the path '...AppData\Roaming\Mozilla\Firefox\Profiles\4peif3cq.default\extensions\om.brunolm@gmail.com.xpi' is denied. if…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
1
vote
0 answers

PHP File Permissions inside Apache

I am creating a plugin-based PHP Application. For this application I have a config file which shall be readable only via the ConfigService.php. The problem is that currently it would be possible for every plugin, to read the whole config file with…
BetaCore
  • 11
  • 1
1
vote
0 answers

Permission denied when trying to run binary executable

I'm getting Permission denied error when trying to run a binary executable, and I can't figure out why. [me@me bin]$ ./alpha -bash: ./alpha: Permission denied (root is able to run) mod is 777. I suspected selinux, but setenforce 0 doesn't help.…
Eran Ben-Natan
  • 2,515
  • 2
  • 16
  • 19
1
vote
0 answers

Generate thumbnail code generates blank image with 644 permission

I am using custom thumbnail code to generate thumbnails of woo commerce products. It was working fine few days ago. But suddenly, it stopped working. Recently, php version is updated to 7.0.20. I think its an issue with this but didn't found any…
Thomas
  • 417
  • 1
  • 5
  • 17