permissions

Unable to delete deployed file during installation with WIX installer

廉价感情. 提交于 2019-12-25 05:18:38
问题 In our WIX installer project, we need to generate a new file, let's call it FileB, based on a deployed file, called FileA in a managed custom action function. In another word, in the component declaration, I declare the FileA. While in a custom action (which happens at commit phase), I need to generate FileB based on FileA. After that, since FileA is no use anymore, I want to delete it in the same custom action. And here comes the problem: with the default installation folder, which is

Why does shell redirection fail when using echo/sudo?

强颜欢笑 提交于 2019-12-25 05:18:11
问题 I have a simple script which is behaving un-expectedly. path='/usr/local/bin/new_script' content='#!/bin/bash\nls' sudo echo -e "$content" > "$path" Raises Error: bash: /usr/local/bin/new_script: Permission denied What am I doing wrong ? 回答1: You can do the redirection with: sudo sh -c "echo -e '$content' > $path" 回答2: You don't have write access to either the file /usr/local/bin/new_script or the directory /usr/local/bin Executing the echo command with sudo doesn't help, as echo just writes

Give permissions to recycle App Pool on IIS7x

百般思念 提交于 2019-12-25 05:08:10
问题 I'm involved in a project where, by adopting DevOps approach, a software (a Windows service acting as agent) has to be installed on the target servers to allow performing deployments remotely and autonomously. As background, we are talking here about a server managing the deployments remotely, different target servers (Windows 2008 R2) where the code is deployed. The servers are hosting IIS applications and the deployments consist in just replacing files and folders followed by app pool

vuforia sdk + android failed to initialize Vuforia with permission exception

本秂侑毒 提交于 2019-12-25 04:48:09
问题 App crashes after running the program with failed to initialize Vuforia with permission exception Android version is <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> testing on device 4.1.1 (api level 16) with front camera only. Permission included in manifest file: <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.INERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses

Android Calendar Check Permission

早过忘川 提交于 2019-12-25 04:27:40
问题 I'm currently implementing the calendar provider however i've stumbled upon a minor error that i'd like to prevent. ContentResolver contentResolver = getContentResolver(); ContentValues contentValues = new ContentValues(); .... Uri uri = contentResolver.insert(CalendarContract.Events.CONTENT_URI, contentValues); // Error pops here "Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission ) or explicitly handle

how to make that only certain class can access a class

最后都变了- 提交于 2019-12-25 04:22:14
问题 What I want to do is forbidding SomeRandom class accessing Protected class public class CertainClass { public void CerFunc(){ ProtectedClass.ProtectedFunction(); } } public class ProtectedClass { public static void ProtectedFunction(){ Debug.Log("Protected"); } } public class SomeRandomClass { public void RandFunc(){ ProtectedClass.ProtectedFunction(); // innaccessible due to protection level } } what do I have to change in order to make that work? Preferably Static, because I need and want

safely hosting a django project over apache using centos

扶醉桌前 提交于 2019-12-25 04:15:48
问题 Error can be seen at: http://djaffry.selfip.com:8080/ I had a project working great, but I had all the files under /var/www/ and with my limited understanding it's bad, according to django's site: "If your background is in PHP, you’re probably used to putting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because it risks the possibility that

Is there a way to make a branch invisible in TFS?

醉酒当歌 提交于 2019-12-25 04:14:12
问题 I know there is a way to set permissions for Branches so specific people can't read/check-out/check-in files. But, is there a way to completely hide those folders/branches so these people can't even see them? Btw, we're using TFS2010. 回答1: Let's say that I have $/Proj/Branch1, and I deny read permission for $/Proj/Branch1 to user A. This would make $/Proj/Branch1 and everything underneath it invisible to user A. This is because by default items don't have any permissions on them, and just

What message is generated by the chrome “permissions” property in an extension manifest?

故事扮演 提交于 2019-12-25 04:12:13
问题 Given a manifest containing the following "permissions" array, what message can a user expect to see when installing an extension with this permission in Chrome? { "name": "My extension", ... "permissions": [ "http://www.google.com/" ], ... } 回答1: Visit chrome://extensions , search for your extension and click on "Details" ("Permissions" in Chrome 40 and earlier). That will display a screen with the permission warnings that you'd see if the user installs the extension. You can also use the

Remove Read-Only Attribute On FOLDER On A Network Share

笑着哭i 提交于 2019-12-25 03:47:13
问题 I am having an issue that is really killing me. I have a directory that when I go to the properties window, shows Read-Only as partially checked (not a full check box, but the box is filled). So I looked in the directory and I checked all the files, none of them have the read-only attribute. Only the folder has it, and only partially. I tried the following code: if (directoryInfo.Exists) { try { directoryInfo.Attributes &= ~FileAttributes.ReadOnly; foreach (FileInfo f in directoryInfo