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

Nginx can't create files inside 755 permissions folder

I have a folder with 755 permissions with foo-bar:foo-bar chown. Nginx throws an error that it can't save a file inside it, it only can when I change the folder's recursive permissions to 777. How can I allow nginx to create the files inside this…
user99999
  • 1,994
  • 5
  • 24
  • 45
1
vote
0 answers

Aws s3 object permission changing in php is not working

I looking for changing the permission of object in amazon aws s3. I have tried several times. But it not working. My file permission is private and i want to change as public. My code is given below. 1.php include('s3_config.php'); $uri =…
fazil tm
  • 299
  • 1
  • 5
  • 23
1
vote
0 answers

rstudio-server permission error after upgrade

On a VPS with Fedora 23 I recently upgraded my rstudio-server. After this I could no longer login. After many attempts to repair it I decided to start with a fresh VPS, unfortunately, even here the same problem appears. From systemctl I get: ERROR…
Bastiaan Quast
  • 2,802
  • 1
  • 24
  • 50
1
vote
2 answers

Save file with C fopen

I did a program in C but it does not allow to save on c:\SomeDirectory\afile.txt I'm using this: FILE* m_hFile = fopen("c:\\SomeDirectory\\afile.txt", "a+t"); fprintf(m_hFile, "testing"); fclose(m_hFile); Why that? Is there a defined folder I can…
okami
  • 2,093
  • 7
  • 28
  • 40
1
vote
1 answer

Docker image running as unknown user ID can delete root files

Is this correct? A random user ID can delete a file owned by root? docker run -ti -u 1001 debian:stretch I have no name!@2af53be18a40:/$ rm -f /etc/passwd I have no name!@2af53be18a40:/$ ls /etc/passwd ls: cannot access '/etc/passwd': No such file…
1
vote
0 answers

How to set default file permissions to 775?

I have a script that creates files, generates images, and then uses one of those images as an input. The problem I am running into is that when the image is created by the first part of the script, the permissions for the image are set to 664 so…
brad
  • 197
  • 1
  • 16
1
vote
1 answer

Linux folder permissions not inherited with symfony new project

I'm setting up a new web server, and getting some issues with folder perms when generating a new symfony project. All my websites are located into /var/www My symfony installer is located in /usr/local/bin/symfony And this my my symfony installer…
Preciel
  • 2,666
  • 3
  • 20
  • 45
1
vote
1 answer

Unable to change file/folder Permissions (Tried Root Explorer Pro, ES File Explorer)

I am attempting to change permissions for the folder which is inside Data folder in Internal Storage. My Device is Unlocked and Flashed with a firmware & with Super SU for root. Using Root Explorer (Pro), I allowed Root access. I also went to root…
ShaQ.Blogs
  • 1,264
  • 4
  • 17
  • 30
1
vote
1 answer

dir1 and dir2 chmod 700, dir3 chmod 777 but I am getting Permission denied

I am learning Linux and permissions. I have following folders dir1/dir2/dir3 and the file myfile.txt within dir3. I am trying to give permission chmod 700 to dir1 and dir2 to both folders and files but to all files and folders within dir3 I want…
Del boy
  • 97
  • 1
  • 14
1
vote
0 answers

Why does Files.delete throw a FileSystemException

When I run: Files.delete(Paths.get(filepath)); I get: java.nio.file.FileSystemException: /tmp/some-file: OperationNotPermitted at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[?:1.8.0_102] at…
Lycus
  • 410
  • 1
  • 6
  • 15
1
vote
2 answers

Ec2 Market place Linux Instance Permission denied (publickey)

I have a Wowza instance purchased from Marketplace, about 4 hrs ago I was able to connect it and was doing some operations on it. But now when I am trying to connect it gives Permission denied (publickey) error. I used chmod command to give 777…
Shivam
  • 649
  • 2
  • 8
  • 20
1
vote
1 answer

SQLite reader.read() always returning false when executed from Task Scheduler

I have a C# program that uses a SQLite database to read/write data. This program requires UAC elevation and I require it to be running at all times. When I run this program manually, which I have to 'Run as admin', my SQLite database functions…
codemann8
  • 372
  • 7
  • 29
1
vote
1 answer

Android - isDirectory always returns false for new File(pathToDirectoryString)

Our aim is to set readable and writable permissions on folders. using [setReadable(bool)][1] and [setWritable(bool)][1]. That is it. We're already writing files to them and reading files from them, but as a precaution, we want to explicitly set…
marienke
  • 2,465
  • 4
  • 34
  • 66
1
vote
2 answers

question regarding file permission

i developed the application using WAMP, i think windows assigns 0644 file permission to all directory by default. i am hosting the application on Unix Server which uses cPanel 11, my application has some directories where user(admin) will be…
Ibrahim Azhar Armar
  • 25,288
  • 35
  • 131
  • 207
1
vote
1 answer

WordPress Synology File Permissions

I'm running a number of WordPress instancies on my Synology server (custom setup not the Synology package). That are accessible to the www. I need WordPress to be able to edit files on my server (ie edit theme from the theme editor, cache plugin…
Ben Jones
  • 504
  • 4
  • 18