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

sharing files using MODE_WORLD_READABLE on Android/Unity

i will start to explain my problem and then i do the question. Problem I am trying to share a file between two different android apps. The application A and the application B. Both made using Unity. The application A save on internal storage a…
1
vote
0 answers

How to retain the file attributes uid and gid when copy the file from remote using Net::SFTP::Foreign module?

I am using Net::SFTP::Foreign module to copy the files from remote to some source machine and after copy operation, able to retain the file creation time and permissions except the gid and uid. After copy operation I have below attributes:…
CodeQuestor
  • 881
  • 1
  • 11
  • 25
1
vote
2 answers

php rename() permission denied using exec cmd line

I use phpword, a ms-word document generator. It creates a temporary file then it renames it to the correct .docx format. The user projop owns the php script and it run it as projop. There isn't any httpd involved because it's a call from a TCL…
unixmiah
  • 3,081
  • 1
  • 12
  • 26
1
vote
1 answer

Reset file/folder permissions & Set new permissions

Trying to use powershell to reset permissions on files/folders copied over from a Linux machine. Structure looks similar to this E:\Parent Folder - No inheritance - Group based permissions | | Folder01 - No inheritance | …
bourne
  • 259
  • 1
  • 5
  • 13
1
vote
1 answer

Overcome Permissions Errors When Traversing the File System

I am building a VBScript to search for and record the locations of files that have been copied out of a home directory (duplicates). I currently have a script that recursively searches the C drive and records all file locations to a log file. (This…
1
vote
1 answer

OSError on uploading files in Django

While trying to send form with image field in it I'm getting : Exception Type: OSError at /user/register/ Exception Value: (13, 'Permission denied') Of course first thing I've checked were the permissions to my folders, and just in case set them to…
crivateos
  • 925
  • 3
  • 10
  • 19
1
vote
1 answer

Execute qpdf in php shell_execute

I have installed Lampp-x64-5.6.3 in my OpenSuse 13.2 OS. I have built a program which require the execution of qpdf which I have installed from the OpenSuse Repo itself. Well when I run the commands (given below) I get no response & nothing works at…
Ganesh Rathinavel
  • 1,243
  • 4
  • 17
  • 38
1
vote
0 answers

What permissions are required for scp

Google fails me. What are the permissions I need to set for a file to make it scp-able from somewhere? I thought read access is enough, but although I can secure-copy the file with my account, my collaborators cannot download the file test with scp…
P.R.
  • 3,785
  • 1
  • 27
  • 47
1
vote
2 answers

Supervisor / Unix Permission Denied to write in directory

When I run my program and try to create a file, I am getting the following error: IOError: [Errno 13] Permission denied: '/home/giri26/couponmonk_project/user_15_qr.png' I run my program using supervisor and this is the config…
user2268507
1
vote
0 answers

Google Drive API for Android open EXISTING FILE

I'm developing an Apps Android integrated with Google Drive. I have some problem with the opening of existing folders and files. In fact, when I try to open a file with DriveFile.MODE_READ_ONLY persimmion I can't. While with…
1
vote
1 answer

How do I make all files executable that have the file extension .cgi?

My server downloads its files from git hub to make sure they are up to date and make it easier for me to edit the files. I have set up a cron job that will update the files every few minutes. However I am having a problem as the CGI files that are…
Riley
  • 4,122
  • 3
  • 16
  • 30
1
vote
4 answers

How to have read permission in a recent created folder and file in C?

I've created a a folder and after I open a file inside of that folder a write on it. It happens that after that I try to open the file but I have no permissions thus I have to change it manually. /* str1 has tha name of the folder */ /* str the…
UcanDoIt
1
vote
2 answers

Why can the `ls` command of Ubuntu list the files of a directory with no execution permission set?

Why can the ls command of Ubuntu list the files of a directory with no execution permission set ? The Test directory has read and write permissions set but no execution permission set. I understand that the x attribute of the directory specify…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
1
vote
1 answer

Folder permissions would changed in cross functions

I have following code in php and I want make a simple directory with user defined permissions. MakeDir("test",0777); function MakeDir($dir,$mode=0777){ echo $mode; mkdir($dir, $mode) ; } for 0777 function returns 511, and for 0666 it…
Huseyin
  • 1,499
  • 2
  • 25
  • 39
1
vote
1 answer

GetEffectiveRightsFromAcl throws invalid acl error

I am trying to get the effective rights a user has on a file using interop in C#. Following is the code I am using : public static FileSystemRights GetFileEffectiveRights(string FileName, string UserName) { IntPtr pDacl, pZero =…
apoorv020
  • 5,420
  • 11
  • 40
  • 63