Questions tagged [directory-permissions]

61 questions
11
votes
1 answer

git fetch insufficient permission for adding an object to repository database .git/objects?

In my repo in my home directory (on an Ubuntu box) I did git fetch I unfortunately got an error about: insufficient permission for adding an object to repository database .git/objects There's a gazillion directories in .git/objects and all of…
9
votes
1 answer

Accessing the /cache directory in the Android filesystem

How can I write a file in the /cache directory? I continue to get a FileNotFoundException (Permission denied). Someone told me about the android.permission.ACCESS_CACHE_FILESYSTEM but i can't find it in the Android reference. Any help will be…
lorenzoff
  • 1,120
  • 3
  • 15
  • 32
9
votes
4 answers

How to know if a given user has read and/or write permissions for a given path

I should start by saying I consider myself a proficient user. But today I had the need to automate this and was stumped. Let's suppose I am root, and as such I'm able to traverse the whole filesystem but I can't run "sudo" nor "su". I have a given…
Eduo
  • 131
  • 1
  • 9
8
votes
3 answers

Changing permissions with powershell doesn't propogate to children

When I set a new filesystemaccess rule with powershell and set-acl, I set the inheritance flags to propagate to children and leaf objects $acl.AddAccessRule((New-Object System.Security.AccessControl.FileSystemAccessRule( …
flynnibus
  • 81
  • 1
  • 1
  • 4
6
votes
3 answers

Rsync does not properly set permissions on Windows folder

I'm using rsync on Windows 7 (in particular, cwrsync). I'm using a simple command as such: rsync -r --perms --delete /cygdrive/c/Users/Michael/Documents/Personal/ /cygdrive/c/Users/Michael/Documents/Personal_Backup/ The recursive copy works fine,…
Michael
  • 415
  • 2
  • 5
  • 7
6
votes
3 answers

PHP: "failed to open stream: Permission denied"

I am getting some interesting results on my server when i try to access any Directory or File via some Function.I have set all my file & directory permissions to 777 and have changed the content owner to Apache but i still get error…
6
votes
3 answers

C# WMI runs an exe on a remote PC that then runs another exe on the same PC that then calls Directory.CreateDirectory on a network path and fails

Using C# WMI I start an exe on another computer and this exe starts another exe using the C# Process class. The last exe tries to call Directory.CreateDirectory using a network path (aka \\\\comp1\d$\dir\). Directory.CreateDirectory throws this…
jestro
  • 2,524
  • 4
  • 27
  • 46
6
votes
4 answers

Access To The Path ... Is Denied

Alright, I've seen tons of questions about this thing, but still, no one answers my question. In fact, each one of the questions I saw differs from the other, this access thing really seems to be hassling programmers. Please check out the…
vexe
  • 5,433
  • 12
  • 52
  • 81
4
votes
1 answer

How to create a shared folder on a remote Windows machine using C#?

I want to manage shared folders on a remote machine from a C# application. Is there a way to do this using C#? I know WMI can do remote management but I haven't found a way to manage file and folder sharing.
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31
4
votes
0 answers

How to remove world-read/write permissions from android application's files and folders programmatically?

I'm trying to get a security certificate for my application and the evaluators told that I need to change the permission of my application folder to not world-read/write. I have googled the problem for days but I have not found any logical solution…
T.Sh
  • 390
  • 2
  • 16
4
votes
4 answers

SVN - User directory permissions

I'm using SVN (CollabNet Subversion Edge) and Tortoise SVN to manage a website being edited by multiple people. I'd like to limit access by some users to some directories (to prevent them seeing database credentials etc). They only require read…
Matt
  • 7,022
  • 16
  • 53
  • 66
4
votes
1 answer

In Cocoa: How to set permission to read/write to a folder?

I am transforming an image size and then I'm saving the new file into the same directory where the original image file is. I can only set permission to the "images" directory. If my app needs to choose an image that is inside that directory it works…
Blue
  • 2,300
  • 3
  • 21
  • 32
4
votes
2 answers

Linking to a network folder in ASP.NET

We have a problem allowing users on the same network to share links to shared network folders. Using ASP.NET, the code generated is as follows:
3
votes
2 answers

IIS 7 Permissions: How to set the correct permissions for a directory?

I have added my site to IIS 7 on my local machine. It has added fine but I can't get the permissions sorted on the folder. I get the following error when trying to browse the site: HTTP Error 500.19 - Internal Server Error The requested page cannot…
Funky
  • 12,890
  • 35
  • 106
  • 161
3
votes
1 answer

C# save directory permissions

I've been trying to find a way to store permissions on a directory. I am currently using SetACL to help. If I could change ownership on directories/registry without it that would be preferred, but that's a different story. An example is this: Check…
1
2 3 4 5