permissions

Android - set targetSdkVersion to 22 to avoid runtime permissions, what are the potential problems?

本小妞迷上赌 提交于 2019-12-30 08:17:10
问题 Can somebody summarize the drawbacks to setting the targetSdkVersion to 22 to avoid handling runtime permissions? After reading the Google docs on this and a few other Stack Overflow posts, the only downside I can find is that a user could grant permission at install time, then go into their OS settings and revoke that specific permission for that specific app, and then run the app again. However from a few of the examples I found this is not difficult at all to deal with in code. Is this

.NET create scheduled task on server fails with E_ACCESSDENIED

不打扰是莪最后的温柔 提交于 2019-12-30 07:11:38
问题 I have an ASP.NET website (in C#) that takes in user data and then attempts to create a windows scheduled task. Of course, this works great on the DEV machine, but fails to run on the server. I'm trying to figure out what permission(s) are required on the ASPNET user (or anonymous web user) to create tasks. The error is: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Stacktrace: at MyScheduler.NewWorkItem(String TaskName, Guid& rclsid, Guid& riid, Object& obj) at

Inno Setup - How to set permissions of installation folder

孤者浪人 提交于 2019-12-30 07:09:11
问题 I am using Inno Setup to create an installer of my application. On the first run my application is creating an SQLite database but it can't achieve that while the user doesn't have the permission of modify the installation folder. I managed to set permissions of files: [Files] Source: "D:\....\***.jar"; DestDir: "{app}"; Flags: ignoreversion; Permissions: users-full Source: "D:\....\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs;\ Permissions: users-full But that

How can I view all grants for an SQL Database?

百般思念 提交于 2019-12-30 05:47:24
问题 I am using SQL Server 2005, I want to find out what all the grants are on a specific database for all tables. It would also help to find out all tables where the delete grant has been given for a specific user. Note: this may be similar to this question, but I could not get the selected answer's solution working (if someone could provide a better example of how to use that, it would help as well) 回答1: The given solution does not cover where the permission is granted against the schema or the

LEMP + wordpress file permissions to be able to edit, upgrade and use sftp client

女生的网名这么多〃 提交于 2019-12-30 05:25:46
问题 I am trying to manage file permissions on a debian webserver that runs nginx, so that wordpress can edit, upload and upgrade without having to use ftp. I also want to be able to login using sftp with my user account. I am aware of the fact that this question has been asked before, see here or here, but following the steps in those answers hasn't been satisfying. The setup currently looks as follows: The wordpress folder is in /var/www/html/ I made a new user ("user") and group ("group"). The

Requesting permissions on Android wear

限于喜欢 提交于 2019-12-30 05:23:18
问题 I have written an application that takes advantage of system_alert_window on android wear. Since marshmallow this permission is revoked by default. I have enabled this permission on the phone side app from the phone settings. But the permission is still denied on the android wear side app and causes the android wear side app to crash with permission denied exception. Is there a way to enable this permission on Android wear side? 回答1: Short answer: keep your watch app on targetSdkVersion 22.

php exec() command permission denied

家住魔仙堡 提交于 2019-12-30 05:13:10
问题 I have a C++ executable file 'skypeforwarder'. skypeforwarder works if I use command line in Terminal in Mac: henry$ /Users/henry/Desktop/skypeForwarder/skypekit-sdk_sdk-4.1.2.20_793394/examples/cpp/tutorial/step3/skypeForwarder sh: /Users/henry/Desktop/skypeForwarder/skypekit-sdk_sdk-4.1.2.20_793394/examples/cpp/tutorial/step3/skypeForwarder: Permission denied But it always issued 'permission denied' if it is called in php exec(); <?php echo exec('whoami'); $output = null; $execBuild = '

Where can I write my log4net log file to under ClickOnce?

允我心安 提交于 2019-12-30 03:18:48
问题 When I run my application locally it writes my log4net log to the location I've configured (i.e., <file value="${LOCALAPPDATA}\TEST\Logs\debug.log" /> ) without a problem. However, when I deploy my application via ClickOnce, the log file is not being written. I know ClickOnce applications are limited in terms of where they can write to, but I was under the impression that LOCALAPPDATA (e.g., C:\Users\me\AppData\Local) was fair game. Any ideas? 回答1: Isolated Storage. 回答2: With ClickOnce, the

Android: adb: copy file to /system (Permission denied)

a 夏天 提交于 2019-12-30 00:57:05
问题 actually I try to install busybox on my HTC Desire. Therefore I try to copy a busybox-binary to /system/bin. So I remounted /system with rw: mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system After this I didn't get a "Read-only file system"-error. But now I'm experiencing "Permission denied" when trying to push the file to /system/bin. I also tried pushing my file to /sdcard and then move this to /system/bin, but this doesn't work either: $ mv /sdcard/busybox /system/bin failed on '

The RSA key container could not be opened

血红的双手。 提交于 2019-12-30 00:56:14
问题 I've been developing an ASP.NET site on an older machine running XP home. I recently got a new Win 7 PC and moved all my project files across. When I try and run the project, I get this error message: "Failed to decrypt using provider 'MyRsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened." I realised that I encrypted parts of my web.config file using a RSA encryption . This is where the problem now lies. I'm not sure how to get that