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
294
votes
17 answers

On npm install: Unhandled rejection Error: EACCES: permission denied

I have managed to corrupt my npm install, and whenever I try to install packages using npm install, I receive error messages along these lines: Unhandled rejection Error: EACCES: permission denied, open…
serlingpa
  • 12,024
  • 24
  • 80
  • 130
286
votes
35 answers

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server

I am new to WAMP and I have just installed it today. The setup went well and localhost seems to work, but when I try to access phpMyAdmin I get this error: Forbidden You don't have permission to access /phpmyadmin/ on this server. Why do I get…
Nistor Alexandru
  • 5,309
  • 9
  • 46
  • 71
278
votes
11 answers

Add Keypair to existing EC2 instance

I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). I would, however, like to gain SSH access to these instances, is it possible to create a new Keypair and apply it to the instances so I…
Chris Wagner
  • 20,773
  • 8
  • 74
  • 95
267
votes
19 answers

SQL Server query to find all permissions/access for all users in a database

I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored procedures, either directly or due to roles, etc. This report would…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
253
votes
13 answers

Can the Unix list command 'ls' output numerical chmod permissions?

Is it possible when listing a directory to view numerical Unix permissions such as 644, rather than the symbolic output -rw-rw-r-- ? Thanks.
Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116
221
votes
19 answers

C# Test if user has write access to a folder

I need to test if a user can write to a folder before actually attempting to do so. I've implemented the following method (in C# 2.0) that attempts to retrieve the security permissions for the folder using Directory.GetAccessControl()…
Chris B
  • 5,311
  • 11
  • 45
  • 57
217
votes
4 answers

PostgreSQL: role is not permitted to log in

I have trouble connecting to my own postgres db on a local server. I googled some similar problems and came up with this manual https://help.ubuntu.com/stable/serverguide/postgresql.html so: pg_hba.conf says: # TYPE DATABASE USER …
kurtgn
  • 8,140
  • 13
  • 55
  • 91
212
votes
13 answers

Android M Permissions : Confused on the usage of shouldShowRequestPermissionRationale() function

I was going through the official doc about the new Permissions model in Android M. It talks about the shouldShowRequestPermissionRationale() function which returns true if the app has requested this permission previously and the user denied the…
akshayt23
  • 2,793
  • 3
  • 21
  • 29
195
votes
23 answers

Android 6.0 multiple permissions

I know that Android 6.0 has new permissions and I know I can call them with something like this if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { …
190
votes
8 answers

cd into directory without having permission

When cding into one of my directories called openfire the following error is returned: bash: cd: openfire: Permission denied Is there any way around this?
user812954
  • 3,951
  • 3
  • 19
  • 18
189
votes
4 answers

Resources, scopes, permissions and policies in Keycloak

I want to create a fairly simple role-based access control system using Keycloak's authorization system. The system Keycloak is replacing allows us to create a "user", who is a member of one or more "groups". In this legacy system, a user is given…
Doctor Eval
  • 3,541
  • 3
  • 20
  • 20
187
votes
13 answers

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

Every time I run this command rails server: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 I searched for a solution here and they said to type: chmod go-w /usr/local/bin But I get this error: chmod: Unable to change…
Xandman
  • 1,933
  • 2
  • 13
  • 8
187
votes
12 answers

Storage permission error in Marshmallow

In Lollipop, the download functionality works fine in my app, but when I upgraded to Marshmallow, my app crashes and gives this error when I try to download from the internet into the SD card: Neither user nor current process has…
fullmoon
  • 8,030
  • 5
  • 43
  • 58
184
votes
3 answers

GRANT EXECUTE to all stored procedures

Does the following command effectively give the user, "MyUser," permission to execute ALL stored procedures in the database? GRANT EXECUTE TO [MyDomain\MyUser]
Chad
  • 23,658
  • 51
  • 191
  • 321
180
votes
9 answers

How do I use su to execute the rest of the bash script as that user?

I've written a script that takes, as an argument, a string that is a concatenation of a username and a project. The script is supposed to switch (su) to the username, cd to a specific directory based upon the project string. I basically want to…
Son of the Wai-Pan
  • 12,371
  • 16
  • 46
  • 55