user-permissions

TFS Customized security groups at collection level

大憨熊 提交于 2019-12-01 13:32:20
问题 We have group of developers, Testers & BA's who will work for more that 30 projects under collection, so instead of adding them for each project want to create security groups at collection level so everyone will have access to all the projects under collection. On TFS, we want to have customized groups like Developers, Testers, BA's at collection level so they will have access to all the projects so that I don't need to add them for each project. So instead of adding them for each project

Android app crashes when trying to read contacts in Android Marshmallow (Android M)

折月煮酒 提交于 2019-11-30 22:14:57
I have target my app to SDK version 23 (Android Marsmallow) When I tried to read a contact from my application I got this exception, though I gave READ_CONTACTS permission in my Android manifest file. I guess the simple try catch wouldn't be the proper handling. Exception details: Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/data from pid=8373, uid=10152 requires android.permission.READ_CONTACTS, or grantUriPermission() My manifest permissions: <uses-permission android:name="android

How to get permissions for using System.Diagnostics.Process.GetProcess(string)?

元气小坏坏 提交于 2019-11-30 15:25:18
I'm using Microsoft Visual Studio to make a simple remote task manager for experience purposes. I want to use Process.GetProcesses(string); but there is an access denied exception that won't allow me to get the remote computer process. In fact it is normal because we should authenticate using a user name and password, but how ? You may try to use WMI for this purpose /// using System.Management; // don't forget! in VS you may have to add a new reference to this DLL ConnectionOptions op = new ConnectionOptions(); op.Username = "REMOTE_USER"; op.Password = "REMOTE_PASSWORD"; ManagementScope sc =

Reading /dev/cpu/*/msr from userspace: operation not permitted

元气小坏坏 提交于 2019-11-30 14:03:53
I am trying to write a simple application that can read msr registers, and am running this application from userspace. I have loaded the msr module and given read permissions for everyone to /dev/cpu/*/msr. But still the user is not able to access these files but the root can. The permissions look like this: crw-r--r-- 1 root root 202, 0 sep 6 17:55 /dev/cpu/0/msr crw-r--r-- 1 root root 202, 1 sep 6 17:55 /dev/cpu/1/msr crw-r--r-- 1 root root 202, 2 sep 6 17:55 /dev/cpu/2/msr crw-r--r-- 1 root root 202, 3 sep 6 17:55 /dev/cpu/3/msr I keep getting "Operation not permitted" error message when I

PostgreSQL - DB user should only be allowed to call functions

给你一囗甜甜゛ 提交于 2019-11-30 03:18:15
Currently I'm using PostgreSQL for my application. Since I am trying to put every SQL that contains a transaction (i.e. insert, update, delete) in a function, I stumbled upon this problem: Is it possible that a database user may only be allowed to call functions and Select-Statements while he can not call SQL-Statements which contains a transaction? By "call functions" I mean any function. Regardless if it contains a transaction or not. I already tried to create a user which can only call functions and Select-Statements. But I always end up with an error, when calling functions which contains

How to get permissions for using System.Diagnostics.Process.GetProcess(string)?

主宰稳场 提交于 2019-11-29 21:12:42
问题 I'm using Microsoft Visual Studio to make a simple remote task manager for experience purposes. I want to use Process.GetProcesses(string); but there is an access denied exception that won't allow me to get the remote computer process. In fact it is normal because we should authenticate using a user name and password, but how ? 回答1: You may try to use WMI for this purpose /// using System.Management; // don't forget! in VS you may have to add a new reference to this DLL ConnectionOptions op =

How can I prevent iOS apps from resetting after changing Camera permissions?

人盡茶涼 提交于 2019-11-29 01:55:38
Currently, when I change the camera permissions for my app in Settings, then navigate back to my app, the app will force a refresh and I will lose my place in the app. I follow these steps exactly: Open an app that uses the camera permission. Navigate to some screen within the app (so you can visibly see the refresh later) Go to the Settings app, navigate to the app's settings, and toggle the camera permission Double click home and go back to the app. After a few seconds, it will refresh, bringing you back to the first screen Note: I'm using an iPhone 6 running iOS 8.4 I've noticed this

PostgreSQL - DB user should only be allowed to call functions

放肆的年华 提交于 2019-11-29 00:59:00
问题 Currently I'm using PostgreSQL for my application. Since I am trying to put every SQL that contains a transaction (i.e. insert, update, delete) in a function, I stumbled upon this problem: Is it possible that a database user may only be allowed to call functions and Select-Statements while he can not call SQL-Statements which contains a transaction? By "call functions" I mean any function. Regardless if it contains a transaction or not. I already tried to create a user which can only call

What's the difference between staff, admin, superuser in django?

感情迁移 提交于 2019-11-29 00:56:16
Django has superuser, staff, admin… superuser and staff are in django.contib.auth.models.UserManager . Then there is the createsuperuser command of django-admin . Well, there are admin apps… What's the difference? Aks I take this from Django Documentation: One of the most powerful parts of Django is the automatic admin interface. Best thing is that you can customise it easily. If logged in as a superuser, you have access to create, edit, and delete any object (models). You can create staff user using staff flag. The “staff” flag controls whether the user is allowed to log in to the admin

OSError: [Error 1] Operation not permitted

时光怂恿深爱的人放手 提交于 2019-11-28 13:43:59
I am trying to run a python script which uses a binary file (xFiles.bin.addr_patched) created by a postlinker. However, I am getting this error. File "abc.py", line 74, in ParseCmd shutil.copy(gOptions.inputX, gWorkingXFile) File "/usr/lib/python2.6/shutil.py", line 89, in copy copymode(src, dst) File "/usr/lib/python2.6/shutil.py", line 66, in copymode os.chmod(dst, mode) OSError: [Errno 1] Operation not permitted: 'myPath/xFiles.bin.addr_patched' When I checked the permissions of this xFiles.bin, by ls-l, it shows that -rwxrwxrwx 1 nobody nogroup I presume the error is because this file was