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
70
votes
4 answers

Programmatically create a django group with permissions

In the Admin console, I can add a group and add a bunch of permissions that relate to my models, e.g. api | project | Can add project api | project | Can change project api | project | Can delete project How can I do this programmatically. I can't…
Steve Walsh
  • 6,363
  • 12
  • 42
  • 54
70
votes
2 answers

Admin rights for a single method

Is it possible to require administrator rights for one single method? Something like this: [RequireAdminRightsForThisMethod()] private void TheMethod(){ // Do something }
llullulluis
  • 3,472
  • 3
  • 27
  • 30
70
votes
8 answers

The SELECT permission was denied on the object 'sysobjects', database 'mssqlsystemresource', schema 'sys'

SETUP: SQL Server 2005 & DotNetNuke 05.01.02. This started with me trying to install a DNN Module that had "select * from dbo.sysobjects" in it's SQL scripts. That failed with the following error: The SELECT permission was denied on the object…
Chris Holmes
  • 11,444
  • 12
  • 50
  • 64
68
votes
4 answers

How do I change the owner of a SQL Server database?

When I accidentally click on the Database Diagrams tab, I get one of the following errors: Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the…
Even Mien
  • 44,393
  • 43
  • 115
  • 119
68
votes
9 answers

How to get a list of all users with a specific permission group in Django

I want to get a list of all Django auth user with a specific permission group, something like this: user_dict = { 'queryset': User.objects.filter(permisson='blogger') } I cannot find out how to do this. How are the permissions groups saved in…
espenhogbakk
  • 11,508
  • 9
  • 39
  • 38
67
votes
4 answers

iPad remembering camera permissions after delete—how to clear?

I'm trying to recreate the condition where the following code returns AVAuthorizationStatusNotDetermined: AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; However, the iPad appears to remember…
Rogare
  • 3,234
  • 3
  • 27
  • 50
66
votes
6 answers

Insecure world writable dir /Users/username in PATH, mode 040777 when running Ruby commands

When I run Ruby commands like gem -v I get this error: /Users/kristoffer/.rvm/rubies/ruby-1.9.2-p180/bin/gem:4: warning: Insecure world writable dir /Users/kristoffer in PATH, mode 040777 1.6.2 First of all I don't understand what this means.…
kristofferR
  • 763
  • 1
  • 6
  • 5
65
votes
5 answers

Get public page statuses using Facebook Graph API without Access Token

I'm trying to use the Facebook Graph API to get the latest status from a public page, let's say http://www.facebook.com/microsoft According to http://developers.facebook.com/tools/explorer/?method=GET&path=microsoft%2Fstatuses - I need an access…
christofr
  • 2,680
  • 1
  • 18
  • 19
65
votes
4 answers

How to give folder permissions inside a docker container Folder

I am creating a folder inside my Dockerfile and I want to give it a write permission. But I am getting permission denied error when I try to do it FROM python:2.7 RUN pip install Flask==0.11.1 RUN useradd -ms /bin/bash admin USER admin COPY app…
Shivanand T
  • 1,093
  • 1
  • 10
  • 18
64
votes
14 answers

How to check internet connection in React Native application for both iOS and Android?

I have a React Native application and I'm seeking to add functionality that checks if there is an active internet connection when the app first starts up, and continuously thereafter. If there is no internet connection, I'm seeking to display a…
zstardust225
  • 661
  • 1
  • 5
  • 5
64
votes
1 answer

changing the owner of folder in linux

I have a folder in my subdomain which is created through WHM so the owner of that subdomain is not the owner of main domain. I want to change the owner of one of the folders of subdomain to domain owner. I tried this, but when I check with winscp…
sachin
  • 727
  • 1
  • 5
  • 11
63
votes
5 answers

How to use custom permissions in Android?

I have two applications. One is declaring permission and having single Activity: Part of AndroidManifest.xml
pixel
  • 24,905
  • 36
  • 149
  • 251
63
votes
10 answers

How to add the AppTrackingTransparency permission to your iOS apps

I am extremely new to iOS, with no iOS development experience at all, however, I've been given a task that's related to preparing for iOS 14+. Based on what I've found https://support.google.com/admanager/answer/9997589, to ensure there's no loss in…
Mark
  • 3,138
  • 5
  • 19
  • 36
63
votes
15 answers

Windows CHMOD 600

I'm trying to connect to Amazon EC2 using OpenSSH in windows but I need to set the permissions of my key file. What is the windows equivalent of CHMOD 600? I've googled extensively and found only blogspam. EDIT: Windows 7, using DOS.
Austin Richardson
  • 8,078
  • 13
  • 43
  • 49
63
votes
4 answers

uses-permission vs permission for android permissions in the manifest.xml file

I noticed that there are two types of permissions in the manifest file, "permission" and "uses-permission" like the two shown below;
Kevik
  • 9,181
  • 19
  • 92
  • 148