Questions tagged [permissions]

Permissions define the operations that authenticated users are allowed to perform on file systems, databases and other computer systems.

Permissions are a series of rules that defines the action that authenticated users of computer systems can do. Permission are employed in several systems, such as file systems, DBMS, apps (iOS, Android, Windows Store, ...) and claims-based identity.

From a programming perspective, we are not interested in how to assign permissions in a particular context (i.e. in a company) but in how these are implemented (which permissions are implemented, in which way we combine them, how they impact performance, ...).

This tag should be used:

  • for questions about how permissions work in a particular systems;
  • for scenarios/problems that involves permissions in a substantial way.

This tag should not be used for asking about the specific permissions that should be assigned in a particular scenario.

Related tags: , , ,

17586 questions
117
votes
8 answers

Correct owner/group/permissions for Apache 2 site files/folders under Mac OS X?

It's hard to find Mac-specific answers to this question on the web, so I'm hoping someone out there can put this one to rest for me? My permissions are screwed up on my sites and I'm not sure how to fix them without just slamming a recursive 777 on…
Fo.
  • 3,752
  • 7
  • 28
  • 44
114
votes
16 answers

There is no existing directory at /storage/logs and its not buildable: Permission denied

I have a problem with my Laravel deployment on a OVH web server. After made composer update php artisan cache:clear php artisan route:clear php artisan dump-autoload I have this answer: There is no existing directory at /storage/logs and its…
Timothée
  • 1,229
  • 3
  • 9
  • 6
114
votes
9 answers

Android: java.lang.SecurityException: Permission Denial: start Intent

I have created an application containing GWVectraNotifier activity which is called from other applications to display Notification. In the Notification dialog, there will be 'show' button and 'close' button. Onclick of 'show' button, the…
Swathi EP
  • 3,864
  • 6
  • 26
  • 25
114
votes
6 answers

Adding Permissions in AndroidManifest.xml in Android Studio?

In Eclipse we were able to add permissions in AndroidManifest.xml by going to AndroidManifest.xml->Permission-> Adding permissions. How to add permissions in Android Studio? How can we get a list of all the permissions that we can add to an…
Nilesh Agrawal
  • 3,002
  • 10
  • 26
  • 54
112
votes
8 answers

Installing in Homebrew errors

Attempting to install rvm and ruby 1.9.2 I already installed homebrew and git, but couldn't get complete updates because I kept getting permission errors. Re-installed Snow Leopard and repaired permissions. Now this happens... $ brew install…
Ibrahim
  • 1,129
  • 2
  • 8
  • 3
110
votes
24 answers

ActivityCompat.requestPermissions not showing dialog box

if (ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_DENIED){ ActivityCompat.requestPermissions(this, new…
Idan Ayzen
  • 1,133
  • 2
  • 7
  • 7
109
votes
23 answers

git push: permission denied (public key)

I'm trying to push a file to a git repo of a friend but errors on public key. git push origin testbranch Permission denied (publickey). fatal: Could not read from remote repository. Where and how do we define public / private keys? git remote -v…
Wyguf Seak
  • 1,153
  • 2
  • 9
  • 8
108
votes
5 answers

How to configure an existing git repo to be shared by a UNIX group

I have an existing git repo (a bare one) which has up to this point only been writable by me. I want to open it up to some UNIX user group, foo, so that all members of foo can push to it. I'm aware that I can easily set up a new git repo with: git…
Pistos
  • 23,070
  • 14
  • 64
  • 77
107
votes
5 answers

Setting default permissions for newly created files and sub-directories under a directory in Linux?

I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had…
David Dean
  • 7,435
  • 6
  • 33
  • 41
107
votes
18 answers

PermissionError: [Errno 13] Permission denied

I'm getting this error : Exception in Tkinter callback Traceback (most recent call last): File "C:\Python34\lib\tkinter\__init__.py", line 1538, in __call__ return self.func(*args) File…
Marc Schmitt
  • 1,299
  • 3
  • 10
  • 7
102
votes
11 answers

How permission can be checked at runtime without throwing SecurityException?

I design a function that may get/set a resource from SD and if not found from sd then take it from Asset and if possible write the asset back to SD This function may check by method invocation if SD is mounted and accessible... boolean…
Emmanuel Devaux
  • 3,327
  • 4
  • 25
  • 30
100
votes
3 answers

Understanding user file ownership in docker: how to avoid changing permissions of linked volumes

Consider the following trivial Dockerfile: FROM debian:testing RUN adduser --disabled-password --gecos '' docker RUN adduser --disabled-password --gecos '' bob in a working directory with nothing else. Build the docker image: docker build -t…
cboettig
  • 12,377
  • 13
  • 70
  • 113
99
votes
1 answer

XML Android Permissions List Full

I wish I could find this list before I made it. If for some strange reason you also need this, it is here for you. Only because I care. Now, like never before, give your apps full power.
rposky
  • 2,246
  • 3
  • 19
  • 22
99
votes
9 answers

How to use Homebrew on a Multi-user MacOS Sierra Setup

I have a Mac that is shared between two engineers. Both have separate user accounts. Both need to run brew update and brew install... occasionally. How do I set this up without getting errors like: /usr/local must be writable!? Yeah, I could have…
Jon Gunter
  • 1,864
  • 2
  • 15
  • 21
99
votes
8 answers

How to make many files public in Google Cloud Storage?

I have 1000 files in Google Cloud Storage to make public, or in general a directory hierarchy. In the Web UI, I can only seem to make one at a time public. Is there some way to do this.