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
98
votes
5 answers

How do I 'run as' 'Network Service'?

I am trying to run a process as another account. I have the command: runas "/user:WIN-CLR8YU96CL5\network service" "abwsx1.exe" but then this asks for the password. However there is no password set for the network service. Is what I am trying to do…
Exitos
  • 29,230
  • 38
  • 123
  • 178
98
votes
2 answers

Bash Scripting - How to set the group that new files will be created with?

I'm doing a bash shell script and I want to change the default group that new files are created as. I know you use umask to change the permissions. Is there something for the group?
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
97
votes
16 answers

Git pushing to remote GitHub repository as wrong user

I have a work GitHub account and a personal one. First I used the personal one for test projects, then I moved on and did a repository with the other account on the same computer. Now I wanted to create a new repository on my personal account again,…
Raz Faz
  • 971
  • 1
  • 7
  • 3
97
votes
21 answers

Failed to add the host to the list of know hosts

Mac OSX Lion 10.7. In an effort to get around weird environment stuff (homebrew wasn't installing wget, and I had all sorts of weird blocks and errors), I uninstalled zschrc and homebrew and a bunch of other stuff, then installed fish shell. Now,…
Sasha
  • 6,224
  • 10
  • 55
  • 102
96
votes
10 answers

What to do when bit mask (flags) enum gets too large

I have a very large set of permissions in my application that I represent with a Flags enumeration. It is quickly approaching the practical upper bound of the long data type. And I am forced to come up with a strategy to transition to a different…
Matthew Vines
  • 27,253
  • 7
  • 76
  • 97
93
votes
11 answers

Django REST Framework - Separate permissions per methods

I am writing an API using Django REST Framework and I am wondering if can specify permissions per method when using class based views. Reading the documentation I see that is quite easy to do if you are writing function based views, just using the…
José L. Patiño
  • 3,683
  • 2
  • 29
  • 28
93
votes
10 answers

Execute a shell script in current shell with sudo permission

To execute a shell script in current shell, we need to use a period . or a source command. But why does it not work with a sudo permission? I have a script with execute permission called setup.sh. When I use a period, I get this: $ sudo . ./setup.sh…
shar
  • 1,988
  • 2
  • 18
  • 25
92
votes
10 answers

Android - onRequestPermissionsResult() is deprecated. Are there any alternatives?

I tried to implement request permissions for writing and reading from storage. Everything worked good but today Android showed me that the method onRequestPermissionsResult(...) is deprecated. There are so many questions about this topic in…
ashley
  • 921
  • 1
  • 4
  • 4
92
votes
2 answers

List of Android permissions normal permissions and dangerous permissions in API 23?

Which permissions need for requesting permissions at run time of API 23?
92
votes
13 answers

Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

When adding permissions to my manifest file, the below xml works. However, this xml doesn't work.
Pablo Cegarra
  • 20,955
  • 12
  • 92
  • 110
90
votes
4 answers

Permission denied for build.sh file

$ ./build.sh --quiet verify /home/travis/build.sh: line 59: ./build.sh: Permission denied. The command "./build.sh --quiet verify" exited with 126.
Amit Kumar
  • 965
  • 1
  • 6
  • 11
87
votes
3 answers

How to grant full permission to a file created by my application for ALL users?

The tool I develop needs to grant access rights "Full Control" to a file created by it. It needs to be read, modified and deleted from all windows accounts and even possible future accounts. Could this be achieved? I know I can try this for a…
nawfal
  • 70,104
  • 56
  • 326
  • 368
86
votes
4 answers

Listing permissions of Android application via adb

Using adb, how can I find out the which permissions an Android application requires? Because I want to display the permissions of multiple applications on different devices, viewing them in Google Play or Settings > Applications manager requires too…
Juuso Ohtonen
  • 8,826
  • 9
  • 65
  • 98
84
votes
3 answers

Modelling a permissions system

How would you model a system that handles permissions for carrying out certain actions inside an application?
James P.
  • 19,313
  • 27
  • 97
  • 155
84
votes
10 answers

How to disable Google asking permission to regularly check installed apps on my phone?

I'm developing an Android app, which I therefore endlessly build and install on my test device. Since a couple days I get with every build/install a question asking Google may regularly check installed apps for potentially harmfull behaviour.…
kramer65
  • 50,427
  • 120
  • 308
  • 488