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

Java applet - access denied to file on same web server

I've written a simple Java applet to generate a technical image based upon some data in a CSV file. I'm passing in the CSV file as a parameter to the applet:
me_here
  • 23
  • 1
  • 5
1
vote
0 answers

CMAKE FILE(COPY... adding permission not in FILE_PERMISSIONS list

To complete an install on Ubuntu necessitates adding postinst and prerm scripts to the package built with CMAKE. Adding the script files using SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA... was the easy part, however, when an install is attempted,…
ledlak
  • 11
  • 3
1
vote
1 answer

Git pull from github only php files giving 500 internal server error

I installed git on my VPS and I am able to clone a github repo to my web directory (I did it as the user, not as root but I tried with root before and same problem). But When I go to the url it gives me 500 internal server error but only in php…
James
  • 308
  • 4
  • 15
1
vote
1 answer

Do I need to set "group" permissions when using chmod?

I need to set chmod for a file so that everybody can view the file, and only the web server holding it (or PHP script) can overwrite it. What would be the correct chmod setting for this? Can you explain what groups are? Are they relevant for me?
mowgli
  • 2,796
  • 3
  • 31
  • 68
1
vote
1 answer

Group permission on files created by sudoing as a different user

I am creating some files by sudoing as a user u1. sudo -u u1 touch file1.txt. The files are created with g-w permission. When I login as u1 and create a file, the file gets created with g+s permission. How can I create the files with g+s permission…
Varun
  • 51
  • 1
  • 5
1
vote
1 answer

Create file with specific permisions in iOS

In my project i'm creating a file using the function: - (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)data attributes:(NSDictionary *)attr; I want to grant this file permissions so only the user can read and write (-rw------). I cant…
Zbun
  • 4,875
  • 4
  • 19
  • 28
1
vote
1 answer

file_put_contents permission denied -- any solution without 777?

I'm working on a page where a user can upload an image/video using a form. The code includes this line: move_uploaded_file($tempfile, $newfile) Then a thumbnail is automatically created from this image/video and uploaded to the server like this:…
user3041398
  • 81
  • 2
  • 8
1
vote
1 answer

Opening symlink to .txt file results in permission denied on MAC OS X

Assume I have two folders and a .txt file in a directory such that /folder1/file.txt /folder2 Being currently in folder1 I create a symlink with ln -s file.txt ../folder2/. If a now cdinto folder2 and open the symbolic link in vim with vim file.txt…
marc
  • 81
  • 1
  • 5
1
vote
0 answers

Get access permissions for a file for a current windows-user

How can I get access permissions for a file for the current user (user that runs the application) ? public static DirectoryInfo di = new DirectoryInfo(rootPath); var dirSecurity = di.GetAccessControl(); var accRules =…
1
vote
1 answer

Running a script as a different user- why is permission denied?

I am running a script as a root that creates a user using useradd and passwd. Then am doing some checks/installs before running some other commands that need to be run as the newly created user. So I have the main script that creates the…
as3rdaccount
  • 3,711
  • 12
  • 42
  • 62
1
vote
0 answers

Apache www-data group write permissions to modify Wordpress not working

I'm trying to give write permissions to Apache www-data group to be able to install new plugins directly from Wordpress webadmin console but it seems like these permissions are ignored. I have to give write permissions to www-data user and…
Stefano Lazzaro
  • 387
  • 1
  • 4
  • 22
1
vote
1 answer

Cordova LocalFilesystem returns unusable path in Windows8?

I'm at my wits end with Cordova 3.5.0 and new FileSystem api. In Windows8 it returns path to \AppData\Local\Packages\packagename\LocalState or TempState depending on filesystem selector. Those directories are read-only and also otherwise they…
Haju
  • 101
  • 7
1
vote
2 answers

check if a folder is readable in Java 1.6

I am trying to check if a folder is readable in Java 1.6 with the following two manner: 1) Using canRead method of File class. But it's readable all the time (canRead() return always true): final File folder = new…
Walid Ammou
  • 390
  • 1
  • 6
  • 21
1
vote
1 answer

Plone 4 buildout error

Does anyone know how I can fix this error that I get when I do a buildout? An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File…
adam
  • 31
  • 3
1
vote
1 answer

PHP unable to open folder for writing. permission denied. Using wampserver2

Anybody know how to get around this with wampserver2? I'm trying to use this thumbnail generator http://phpthumb.gxdlabs.com/
Catfish
  • 18,876
  • 54
  • 209
  • 353
1 2 3
99
100