permissions

File permissions do not inherit directory permissions

♀尐吖头ヾ 提交于 2019-12-18 02:57:50
问题 I have a program that's creating a secure directory for user output. This is working correctly, but the files I create in it (or copy to it) are ending up with only administrator access. DirectoryInfo outputDirectory = baseOutputDirectory.CreateSubdirectory(outputDirectoryName, GetDirectorySecurity(searchHits.Request.UserId)); ... private DirectorySecurity GetDirectorySecurity(string owner) { const string LOG_SOURCE = "GetDirectorySecurity"; DirectorySecurity ds = new DirectorySecurity();

Programmatically retrieve permissions from manifest.xml in android

回眸只為那壹抹淺笑 提交于 2019-12-18 02:12:32
问题 I have to programmatically retrieve permissions from the manifest.xml of an android application and I don't know how to do it. I read the post here but I am not entirely satisfied by the answers. I guess there should be a class in the android API which would allow to retrieve information from the manifest. Thank you. 回答1: You can get an application's requested permissions (they may not be granted) using PackageManager : PackageInfo info = getPackageManager().getPackageInfo(context

What causes Python socket error?

一曲冷凌霜 提交于 2019-12-17 23:46:20
问题 File "C:\Python25\lib\SocketServer.py", line 330, in __init__ self.server_bind() File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind SocketServer.TCPServer.server_bind(self) File "C:\Python25\lib\SocketServer.py", line 341, in server_bind self.socket.bind(self.server_address) File "<string>", line 1, in bind socket.error: (10013, 'Permission denied') I tried to start up the Google App Engine development server and received this error the first time I tried to run it. Any ideas?

“CS0016: Could not write to output file” error when starting an app in IIS 7

丶灬走出姿态 提交于 2019-12-17 22:52:36
问题 I am running Windows 7, and am not usually a developer in this setting, and have recently built a WCF Rest Service in C#, that I'm now trying to deploy to IIS just on my local machine. After much wrangling, I setup up the application, but when I navigate to the application, I get an error message: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code

Why in Android O method Settings.canDrawOverlays() returns “false” when user has granted permission to draw overlays and returns to my application?

牧云@^-^@ 提交于 2019-12-17 22:35:15
问题 I have the MDM app for parents to control child's devices and it uses permission SYSTEM_ALERT_WINDOW to display warnings on child's device when forbidden action performed. On devices M+ during installation the app checks the permission using this method: Settings.canDrawOverlays(getApplicationContext()) and if this method return false the app opens system dialog where user can grant the permission: Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" +

Facebook iOS 3.1 sdk login with publish permission callbacks

折月煮酒 提交于 2019-12-17 22:23:50
问题 I'm having trouble logging in with publish permissions in the facebook 3.1 ios sdk. My app has a button to share a video, and when the user clicks it I want to add the basic + publish permission. As I understand, i have to do two calls - openActiveSessionWithReadPermissions , and then reauthorizeWithPublishPermissions Here's the code I'm using now: //Opens a Facebook session and optionally shows the login UX. - (void)openSessionForReadPermissions { [FBSession

spring-security how ACL grants permissions

陌路散爱 提交于 2019-12-17 22:17:04
问题 I'm currently integrating springs-security into our new web application stack. We will need to be able to grant permissions for a user or role to access a specific object or all objects of a certain type. However that's one thing I didn't really get when working through documentations and examples: Does an ACL only grant permissions to a user/role for a single object or does it do that for the entire type? As I understand it, domain object means the type but the examples and tutorials seem

iOS resetting granting access to reminders

孤者浪人 提交于 2019-12-17 21:22:12
问题 I have a silly problem, one of you surely already encountered. I am working on adding reminder/alarm in my app and I am using : eventStoreAccessGranted. It all works fine. When I installed the app for the first time, I got asked if I want to grant access to the app, I said yes and then I got my reminder/alarm, as I programmed it. I need to test more though and especially because I am localizing I want to write down the question of "granting access to add reminders" in the several languages I

How can you request photo gallery permissions in iOS a second time

☆樱花仙子☆ 提交于 2019-12-17 20:26:45
问题 In my iOS app I am accessing the user's photo gallery. The first time the user does this, it asks them for permission. Some of my users have reported getting a crash this first time due to the permission request, but it works fine on subsequent tries. To be able to test this on my own, I need to be able remove the permission from my iPad and have it prompt again. Is there a way to do this either through the iPad/iPhone itself or through code? 回答1: Run the Settings app. Go to General, then

Enable USB debugging (under settings/applications/development) programmatically from within an app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 20:06:38
问题 Is it possible to enable USB debugging (under settings/applications/development) programmatically from within my app? I was looking at Permission.WRITE_SETTINGS and http://developer.android.com/reference/android/provider/Settings.System.html, but I couldn't find anything appropriate. 回答1: You will need root permissions to do so from an app. That said, it is possible to enable ADB by executing the following terminal commands: setprop persist.service.adb.enable 1 start adbd This blog post gives