permissions

Wix: Set permission of a folder within the installfolder using permissionEx

邮差的信 提交于 2019-12-23 20:34:02
问题 I'm creating an installer for an ASP.NET MVC web app using Wix, and I need to set a write permissions for the IIS_WPG on a particular folder in the site. I found an example (I think, still haven't got it working) of how to do this with cacls.exe: <CustomAction Id="PermissionAppData" Directory="TARGETDIR" ExeCommand=""[SystemFolder]cacls.exe" "[INSTALLDIR]\Content\uploads" /T /E /G IIS_WPG:M" Return="check" /> However, I've heard that PermissionEx is better as it modifies ACLs instead of

Firebase messaging on android and permissions

雨燕双飞 提交于 2019-12-23 20:27:49
问题 I recently added firebase messaging to my android app and I noticed some new permissions required to my app at similar time, for example: android.permission.READ_PHONE_STATE I couldn't find anywhere in documentation, why is this permission required. I even tried to explicitly disable it in manifest ( tools:node="remove" ) and messaging still works for me. It's kinda messy and I want to use only as few permissions as I need for sake of my users. Is this permissions really needed by messaging

VM cloudera - user cloudera and permissions?

∥☆過路亽.° 提交于 2019-12-23 17:11:25
问题 I downloaded and installed the VM Cloudera 4.4 to play with Hadoop. I have already a cluster on a platform for my job, so I know a little how works hadoop. So I think my problem comes from my misunderstanding of linux and his users and group. With Hive : I try to create a hive table with the shell, and it works. I have a table in /user/hive/warehouse/test witch belongs to user cloudera of group cloudera. I have some data files (.txt) in hdfs : /user/cloudera ( user:cloudera and group: hive)

how to provide access permission for applet to write on file system

不羁岁月 提交于 2019-12-23 15:58:57
问题 I have problem in setup of policy file for applet.I am doing this first time and don't know how to set the policy file for applet in java.Actually I want to give the permission to the applet to write on the file system. for Which I will have to give file permission to the applet So I make a file named .java.policy and and put the following code in it grant codeBase "file:/C://res/applet/*" { permission java.io.FilePermission "C:\\res\\applet\\test.txt", "read, write"; }; and save this in

windows 8 winform won't autostart when requestedExecutionLevel set to “requireAdministrator”

跟風遠走 提交于 2019-12-23 15:52:09
问题 i created a winform application. my program needs administrator permissions to work, so i added app.manifest file with the following privileges: <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> </requestedPrivileges> i added the program to the windows 8 autostart so it should autostart. when i change the app.manifest to the following line, it loads successfully at start of windows. <requestedExecutionLevel

Get all the users based on a specific permission using CSOM in SharePoint 2013

99封情书 提交于 2019-12-23 14:21:57
问题 I want to get the list of all the users who have a particular role/permission on a site. For example, I need the list of users who have edit rights (RoleType=Editor) using .Net CSOM in SharePoint 2013. They can be in any group. I tried many things. However, it seems there isn't a straight forward way to do this. Any ideas? Thanks in adavance. 回答1: You could utilize Web.GetUserEffectivePermissions method to gets the effective permissions that the specified user has within the web site. Example

Get all the users based on a specific permission using CSOM in SharePoint 2013

ぃ、小莉子 提交于 2019-12-23 14:21:14
问题 I want to get the list of all the users who have a particular role/permission on a site. For example, I need the list of users who have edit rights (RoleType=Editor) using .Net CSOM in SharePoint 2013. They can be in any group. I tried many things. However, it seems there isn't a straight forward way to do this. Any ideas? Thanks in adavance. 回答1: You could utilize Web.GetUserEffectivePermissions method to gets the effective permissions that the specified user has within the web site. Example

INSTALL_FAILED_UPDATE_INCOMPATIBLE but app not installed

本小妞迷上赌 提交于 2019-12-23 13:07:43
问题 I am getting an INSTALL_FAILED_UPDATE_INCOMPATIBLE error upon doing a adb install MyPackage.apk I did what all other posts out there suggest, namely an uninstall of the package with adb uninstall com.company.package (with appropriate substitutions for 'company' and 'package'), which reports 'Success', but the install error still appears... In the adb logcat output I get No content provider found for permission revoke: file:///data/local/tmp/MyPackage.apk Package com.company.package codePath

Grails ACL with Custom Permissions

≡放荡痞女 提交于 2019-12-23 12:45:28
问题 Spring Security ACL plugin for grails by default uses the BasePermission class with 4 basic permissions. And uses DefaultFactory to assign this permissions. And AclPermissionEvaluator where this DefaultFactory is assigned. When use this approach all is fine. I can use @PreAuthorize("hasPermission(#report, read)") Here I provided one of the basic permissions called READ which is defined in BasePermission class. What I need is my own custom permissions. I've done: public class MyPermission

Permissions not showing while installing apk

馋奶兔 提交于 2019-12-23 12:34:29
问题 I'm making an Android app with ActionScript using FlashBuilder. I need to use The WiFi permission for my app. The application works on desktop with no problems(AIR Desktop project). Now when I tried to make it for Android(Mobile Project), it showed me no errors. I enabled the permissions I needed (Network and wifi) and made the .apk file. However, when I install the .apk file on my Android 6.0.1 device(Note 5) it claims that the app asks for no permissions. I decided to ask for all the