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

Jenkins Service vs Jenkins Jar File Permission

I have Jenkins 1.6 installed as a service on a CentOS machine. At some point in the past the service stopped/crashed/? and Jenkins was restarted from the command line, java -jar jenkins.war, as the root user. While it was running as root some…
Spudmux
  • 11
  • 5
1
vote
1 answer

How to put_file_contents with php without user denied error?

I'm trying to replace the contents of a file in a different folder than my php file folder, and I'm getting an error: "Failed to open stream, Permission Denied" I'm using the put_file_contents function to change the file contents. I searched online…
mk117
  • 753
  • 2
  • 13
  • 26
1
vote
1 answer

Ruby Project - Prevent a ruby file from directly being called from OS command line

I am doing a demo command line project in Ruby. The structure is like this: /ROOT_DIR init.rb /SCRIPT_DIR (other scripts and files) I want users to only go into the application using init.rb, but as it stands, anyone can go into the…
Spandan
  • 199
  • 1
  • 2
  • 8
1
vote
2 answers

Probable issues with running flex application/swf in local mode

We are developing client application for our solution. Its a desktop client. We are using flex for same. (Although I know flex is meant for web application and air application is best suited for desktop clients, but due to some build issues we can't…
Silent Warrior
  • 5,069
  • 8
  • 41
  • 52
1
vote
0 answers

What user permissions do I need to reset FILE_ATTRIBUTE_ARCHIVE attribute on a file?

I'm using SetFileAttributes API to reset FILE_ATTRIBUTE_ARCHIVE attribute on files. My app that I need it for acts as a backup software. Here's how I do it: DWORD dwAtt = ::GetFileAttributes(strSrcFilePath); if(dwAtt != INVALID_FILE_ATTRIBUTES) { …
c00000fd
  • 20,994
  • 29
  • 177
  • 400
1
vote
1 answer

Giving permissions to webserver without changing folder permissions to 777

I've tried to use chmod function in php to change permissions to 777 temporarily, upload the file and then change it back to 755. But it didn't work, as it doesn't allow me to use the chmod function via php. if(chmod($path, 0777) ) { …
Ketan Malhotra
  • 1,255
  • 3
  • 16
  • 44
1
vote
0 answers

How to write a set of files in OSX sandbox(obecjtive c)?

I made a video editing app for OSX called Pompi Video Editor. I gave the option to save a video as either quicktime movie or MPEG4. I ask for the user where he wants to save the file using NSSavePanel. I want to add another export option. I would…
1
vote
0 answers

How to write a file at custom path in external SD card in Android 6.0

I mean the followings in this question: internal SD card: the on-board storage device whose path is obtainable from calling Environment.getExternalStorageDirectory() external SD card: a physical microSD card that can be inserted to or removed from…
Naetmul
  • 14,544
  • 8
  • 57
  • 81
1
vote
0 answers

git checkout: untracked working tree files would be overwritten by checkout

I have the following branches: master, css-merge-2016, php-merge-2016 and b4-selector-removal I was working on my local files and was committing to branch css-merge-2016 without any issue. But a couple of days back I had to checkout to a specific…
Subrata Sarkar
  • 2,975
  • 6
  • 45
  • 85
1
vote
1 answer

Android - read permission denied on /sdcard

Using the termux (https://termux.com) terminal-emulation program, I type the following command: ls /sdcard I get the following error: ls: can't open '/sdcard': Permission denied No, my device is not rooted, nor do I plan to root it - so I can not…
Sophia_ES
  • 1,193
  • 3
  • 12
  • 22
1
vote
6 answers

Writing to a file in a directory that belongs to a different user using php

I have a server that hosts several domains. From one of the domains, using a php script I want to be able to append a few lines to the .htaccess of other domains. For example from masterdomain.com I want to append some lines to the .htaccess of…
b2238488
  • 990
  • 2
  • 15
  • 32
1
vote
1 answer

777 permissions for public_html - Internal Server Error on some servers, but not others?

I have a few different servers, and on some servers, I can chmod the public_html folder to 777 permissions without problems - but on other servers, I get error messages. When trying to access the domain I get an Internal Server Error, and in my…
Tristan
  • 1,561
  • 3
  • 18
  • 22
1
vote
0 answers

ant: handling jar whose contents have file permissions 000

I am trying to overwrite the default icon of installer JAR created by IzPack, with one from my application:
bguiz
  • 27,371
  • 47
  • 154
  • 243
1
vote
0 answers

Android: Cant Read File

Here is my code: private Bitmap getBitmap(Uri selectedimg) throws IOException { BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 3; AssetFileDescriptor fileDescriptor = null; Log.d("selectedimg","…
ahdgfd
  • 325
  • 3
  • 12
1
vote
1 answer

How can I read a folder owned by root with Vala?

I'm trying to read the path /var/cache/apt/archives with the following permissions: drwxr-xr-x 3 root root 90112 ago 2 14:36 archives And I got the following error: ERROR: Error opening directory '/var/cache/apt/archives/partial': Permission…
lozanotux
  • 115
  • 1
  • 9