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
2 answers

Wordpress media upload to different folder than usual with different permissions

I am having the problem while uploading the media file in wordpress. While uploading the media file instead of saving it to folder wp-content/uploads/2016/07/ it's uploading to the folder wp-content/uploads/2013/01 with the permission 644. I have…
KCP
  • 929
  • 9
  • 29
1
vote
1 answer

How to solve "Unable to create the "%kernel.root_dir%/../web/uploads" directory" error in Symfony2

I'm working with a bundle to upload any type of file. For this purpose, I created a new bundle uploadBundle with the following files: Entity "Archivo.php"
Isaac Bosca
  • 1,588
  • 1
  • 15
  • 34
1
vote
0 answers

Restricting Certificate access from C# Code

The use case: I have a hosting platform (server) where multiple ASP.Net applications are hosted. I do not want to have application to have programmatic access to the certificates on the Server. Only the Components/libraries that are developed by the…
rauts
  • 1,018
  • 9
  • 21
1
vote
2 answers

Checking if a user has read permissions for a file in windows

How do you check to se if a user has read permissions for a file in windows? There is the possibility to read the authorization rules via File.GetAccessControl. This does not tell me if the user has the right to read the file through group…
user457028
1
vote
0 answers

Laravel Valet Installation Wrong Folders

Whenever I install Laravel Valet (with valet install) it asks me for my password (which is not supposed to happen I suppose), and installs it for root. Here is where things get weird. When I link a site it tells me that the link has been created,…
alpipego
  • 3,223
  • 2
  • 17
  • 28
1
vote
1 answer

Rails Byebug permission Errno::EACCES error while using script to start server

I've read several similar topics where it is suggested to check/change permissions. And I already did this but it doesn't work. Here is my project folder permissions: $ stat trains File: ‘trains’ Size: 4096 Blocks: 8 IO Block: 4096…
Seybo Glaux
  • 787
  • 1
  • 7
  • 16
1
vote
1 answer

User doesn't have permission to use os.chmod( )

I am trying to open a new file and immediately give it full system read/write/execute permissions. I am doing this like so: csvout = open("/Users/me/Google Drive/documentation/report.csv","w") os.chmod("/Users/me/Google…
cadams
  • 1,299
  • 1
  • 11
  • 21
1
vote
1 answer

why vim can overwrite other user file under its home directory

For example, root touch a new file under a common user's(name it bob) home directory: /home/bob $ ls -alh a.txt -rw-r--r-- 1 root root 0 Jul 16 17:45 a.txt Now user bob open it with vim, and it should be readonly. I tried to force overwrite it with…
Tanky Woo
  • 4,906
  • 9
  • 44
  • 75
1
vote
1 answer

Git repo default ignore files permissions

Some time ago I worked in a project developed by several people. One of the people, consciously or not, changed the chmod some files. When the changes push into the repository, each time, another download the code from there cause in start, a many…
Andrzej Sala
  • 90
  • 1
  • 5
1
vote
0 answers

System.IO.File.Exists not working after publishing the website

System.IO.File.Exists not working after publishing the website.I need to check whether an exe file already exist in a path using 'System.IO.File.Exists'.It worked fine in localhost ,but not working after publishing the site.I think its due to…
neethu
  • 193
  • 1
  • 3
  • 14
1
vote
1 answer

How to securely set the group ownership of a unix domain socket?

I want to create a Unix domain socket which is restricted to a particular group. So what I'd ideally do is (ignoring error checking) something like: // Set the "address" (ie filesystem path) struct sockaddr_un addr; memset(&addr, 0,…
Chris Emerson
  • 13,041
  • 3
  • 44
  • 66
1
vote
1 answer

Change permissions for others ONLY

I have the following directories on the HDFS(which loosely follows the POSIX model) : [ojoqcu@sandbox ~]$ hdfs dfs -ls / Found 11 items drwxrwxrwx - yarn hadoop 0 2016-03-14 14:19 /app-logs drwxr-xr-x - hdfs hdfs 0…
Kaliyug Antagonist
  • 3,512
  • 9
  • 51
  • 103
1
vote
1 answer

File Permission For Zip File Java

Our web application is hosted in Linux machine which is used to upload files and create zip of it and download option. I have set file permission using setPosixFilePermissions() method and if they access app from Windows machine and download will be…
Akshobhya
  • 169
  • 2
  • 16
1
vote
4 answers

Are my permissions set correctly? (python)

In python I'm doing a os.system('chmod o+w filename.png') command so I can overwrite the file with pngcrush. These are the permissions after I set them in python: -rw-rw-rw- 1 me users 925 Sep 20 11:25 filename.png Then I…
atp
  • 30,132
  • 47
  • 125
  • 187
1
vote
1 answer

How do you change file permissions in Java using NIO library on Windows 7

I'm trying to write code that starts with a Path object that is for a specific file and makes it so the owner of the file no longer has permissions to move it, delete it, or modify it, but they can still read it. Also need to make sure that this can…
JereTheJuggler
  • 127
  • 1
  • 2
  • 9